University of Minnesota
School of Public Health Division of Biostatistics

PubH 6470: SAS Procedures and Data Analysis, Fall 2009

Course Information

PubH 6470 introduces students with a background in statistics to programming, graphics, and data analysis using SAS. The course concentrates on data-step programming, data editing and reformatting, as well as statistical applications. Students will complete and present a data analysis for a final class project, using data from the student's field if possible. Projects need advance approval from the instuctor.

Instructor: William Thomas, Mayo A-467, 625-0651
Office hours: 2:30 - 3:30 Wednesdays or by appointment

TA Office Hours in computing lab (Mayo C-381): Wednesdays 1:30 - 3:00, and Fridays 3:00 - 4:30

In addition to Mayo C-381, PC-SAS is installed at these computing labs:
Diehl Hall Biomed Library
Coffman Union

Many documents on this website are in PDF format. For the software to read them, download Adobe Acrobat Reader here.

I recommend doing the coursework with PC-SAS on your own computer.
Get PC-SAS through the University of Minnesota for $120 per year.


Introduction to SAS


Resources for solving problems in SAS


Homework


Syllabus and Class Notes


2008 Lecture Notes and Examples

  1. Intro to SAS I; SAS program.
  2. Intro to SAS II, reading Excel spreadsheets; Workbook1.xls, Workbook2.xls, SAS program.
  3. Data checking, Proc Insight, SAS Manual, basic tests
  4. Missing values, graphics, reporting in MSWord, SET, MERGE; "Fix SAS output" MSWord macro, SAS program
  5. Merging, data set options, GLM.
  6. GLM: residual & interaction plots, means, LSmeans, dates, arrays; SAS program.
  7. GLM: LSmeans, estimate; missing values.
  8. MI and MIanalyze with GLM; smoothing, jitter; SAS code, HAMD2 data.
  9. Correlation, partial correlation, regression: Proc REG; SAS program, Grade 8 data (SAS permanent file).
  10. Regression example, VIF, plots, subset selection.
  11. Making CLASS variables for Proc Reg, predictions, sample size; SAS program.
  12. Macros and Bootstrap; SAS program, bootstrapmacros.sas, SAS bootstrap documentation.
  13. Bootstrap confidence intervals: correlation, kappa, agreeement.
  14. Bootstrap prediction error, t-tests.
  15. Longitudinal data: graphs, area under a curve (AUC); SAS program.
  16. Within-person correlation, covariance matrix.
  17. Proc Mixed: repeated measures, random effects.
  18. Crossover designs.
  19. Logistic regression.
  20. Log-binomial, repeated binary observations.
  21. Conditional logistic regression, ordinal logistic regression.
  22. Survival data, Kaplan-Meier estimates, randomization log-rank test, SAS code, macro file from Cantor: SAS Survival Analysis Techniques, 2nd ed..
  23. Reporting comparisons of survival curves, proportional hazards regression.
  24. Checking proportional hazards, subset selection, time-varying predictors.
  25. Competing risks: cumulative incidence, SAS code for lecture, CumIncid macro (from www.sas.com), BMT data from Klein & Moeschberger, Survival Analysis,2nd ed, sec 1.3, App D.