NOTES_lecture2

NOTES_lecture2 - Introduction to SAS Lecture Two Shang Xue...

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

View Full Document Right Arrow Icon

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

View Full Document Right Arrow Icon

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

View Full Document Right Arrow Icon

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

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Introduction to SAS: Lecture Two Shang Xue @ Purdue Statistics Getting Your Data Set Ready and Checking Your Data DATA Step: Getting Your Data Set Ready The DATA Statement The Input Statement Direct Data Entry Loading Data From Raw Data Files PROC Step: Checking Your Data PROC PRINT PROC MEANS PROC GPLOT The DATA Statement The DATA statement tells SAS that you want to read a data file and store it in a SAS data set with a name you specify. The DATA statement starts with the keyword DATA : DATA libref.data-set-name; If the library is the temporary library, libref could be omitted. For example, to create a temporary dataset named ”temp”, we use: DATA temp; Creating SAS Data Sets Data set iteself could be created by: I Direct data entry (INPUT + DATALINES/CARDs). I Loading data from raw data files (INPUT + INFILE). I Modifying existing SAS data sets (not covered in this intro course). The Inpute Statement The INPUT statement tells SAS the names of the variables and the column numbers read on a specified line. General form of the INPUT statement: INPUT input-specifications; Input specifications mainly: I names SAS variables I identies the variables to as character or numeric...
View Full Document

{[ snackBarMessage ]}

Page1 / 16

NOTES_lecture2 - Introduction to SAS Lecture Two Shang Xue...

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

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