Syllabus
STAT 4199: Statistical Computing in SAS
STAT 4199: Statistical Computing in SAS
Summer 2015: May 26th July 2nd
Meeting Location: 503 Hamilton Hall
Meeting Time: MTWR 4.30PM-6.05PM
Instructor: Anthony Donoghue
Office: 901 SSW
email: [email protected]
Homework 3
Question 1
Question 2
Question 3
Question 4
Question 5
Question 5
Question 6
Question 7
A randomized clinical trial compared aspirin to placebo for the prevention of heart attacks (MIs) and
strokes. Out of a total of 1000 subjects on aspirin, t
Midterm Project (worth 30% of Overall Grade)
The purpose of the project is to apply what you have learned in (approximately) the first three weeks of class to
data of interest to you.
Below are links to data sources where you can download excel or delimit
Combining SAS Data Sets
Introduction to Combining Data Sets
Appending a Data Set (Self-Study)
Concatenating Data Sets
Merging Data Sets One-to-One
Merging Data Sets One-to-Many
Merging Data Sets with Nonmatches
1
Combining SAS Data Sets
Introduction to Co
Reading Delimited Raw Data Files
Using Standard Delimited Data as Input
Using Nonstandard Delimited Data as Input
1
Reading Delimited Raw Data Files
Using Standard Delimited Data as Input
Using Nonstandard Delimited Data as Input
2
Objectives
Use the DATA
Manipulating Data
Creating Variables
Creating Variables Conditionally
Subsetting Observations
1
Manipulating Data
Creating Variables
Creating Variables Conditionally
Subsetting Observations
2
Objectives
Create SAS variables with the assignment statement
i
Producing Summary Reports
Using the FREQ Procedure
Using the MEANS Procedure
Using the TABULATE Procedure (Self-Study)
1
Producing Summary Reports
Using the FREQ Procedure
Using the MEANS Procedure
Using the TABULATE Procedure (Self-Study)
2
Objectives
Pr
Enhancing Reports
Using Global Statements
Adding Labels and Formats
Creating User-Defined Formats
Subsetting and Grouping Observations
Directing Output to External Files
1
Enhancing Reports
Using Global Statements
Adding Labels and Formats
Creating User-D
Data Transformations
Introduction
Manipulating Character Values (Part 1)
Manipulating Character Values (Part 2)
Manipulating Numeric Values
Converting Variable Type
1
Data Transformations
Introduction
Manipulating Character Values (Part 1)
Manipulating Ch
Reading Excel Worksheets
Using Excel Data as Input
Doing More with Excel Worksheets (Self-Study)
1
Reading Excel Worksheets
Using Excel Data as Input
Doing More with Excel Worksheets (Self-Study)
2
Objectives
Use the DATA step to create a SAS data set fro
Reading SAS Data Sets
Introduction to Reading Data
Using SAS Data as Input
Subsetting Observations and Variables
Adding Permanent Attributes
1
Reading SAS Data Sets
Introduction to Reading Data
Using SAS Data as Input
Subsetting Observations and Variables
IF-THEN Statements
The IF-THEN statement executes a SAS statement
for observations that meet specific conditions.
General form of the IF-THEN statement:
IF expression THEN statement ;
1
expression is a sequence of operands and operators
that form a set of