Lecture_3 Working with Data Data Data

Lecture_3 Working with Data Data Data - Lecture3...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
    Lecture 3 Working with Data Data Data Tuesday February 2 nd 10:10 – 11:00 am “Computer science is a grab bag of tenuously related areas thrown together by  an accident of history, like Yugoslavia.”  – ‘Hackers & Painters’ by Paul Graham
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Today’s Outline Permanent SAS Datasets Proc Univariate Proc Boxplot
Background image of page 2
    Datasets & Procedures
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Thus far, Temporary Datasets Our programs have been following the pattern: Read in data Analyze it Forget about the data Recodes & new variables are created every time we run the program…
Background image of page 4
    Dataset Names Name declared in first line of Data procedure: Data stat200Data; Infile "F:\Data\Stat 200\Stat 200.txt" firstobs = 2 ; Input gender homeTwn $ greek gpa skipCl sitArea $ handed $ hrsExer smokeCig fastDrvn drvnInfl hsSports virgin cheatdSO sexPartns ageLostIt; atLeastOnePartner = ( sexPartns > 0 ); run ;
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Working Library Explorer Tab -> Libraries -> Work
Background image of page 6
    SAS Libraries Drawer in a filing cabinet Can have more than one open at a time Drawers contain multiple folders (datasets) Data <Library Name> . <Dataset Name> ; Data work.stat200Data;
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    SAS Defaults Default Library: Work Default Dataset: Most Recent Data  Procedure
Background image of page 8
    Explicitly Using SAS Datasets All procedures we’ve seen (except proc format) allow the user to specify a dataset: /* Print out Current Dataset */ Proc Print ; title 'Active Dataset' ; run ; /* Print out Stat 200 Dataset Explicitly */
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 42

Lecture_3 Working with Data Data Data - Lecture3...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online