36-601/602 Computing for Statistical Practice

Note: This page contains course material for the Computing for Statistical Practice portion of the Carnegie Mellon University, Department of Statistics, Masters In Statistical Practice course 36-601/602, "Perspectives on Statistical Practice".

Class Notes

  1. Orientation Week: Introduction to SAS   code: SASIntro.sas   data description: fishcatch.txt

  2. Introduction to SAS (September 14): SASLecture1.pdf     Intro1.sas   fishies.txt   fishies.dat   sick.csv   D1.dat   D2.dat   Solutions: Lec1Examples.sas
  3. Lecture Notes #2 (September 26): SASLecture2.pdf   IF/THEN/ELSE, HSLS example, PROC PRINT, PROC UNIVARIATE, PROC MEANS, PROC FREQ
    HSLS.sas     school.puf (put in data subfolder)
  4. Lecture Notes #3 (October 1): SASLecture3.pdf   CMISS, PUT, WHERE, OUTPUT, ARRAY/DO, IF/THEN/ELSE, DROP, KEEP, RENAME
    HSLSFullSolutions.sas     Lec3Examples.sas
  5. SAS Lecture Notes #4 (October 3): SASLecture4.pdf   PROC FORMAT, INFORMAT, FORMAT, PUT(), INPUT(), permanent (in)formats,
  6. SAS Lecture Notes #5 (October 5): SASLecture5.pdf   (review)
    Programming in R
  7. R Lecture Notes #1 (October 10): UsingR-Part1.pdf    quicktree.R   fake1.csv  fake2.csv  fake3.csv  fake4.csv  fake5.csv
  8. R Lecture Notes #2 (October 17): UsingR-Part2.pdf    quickReg.R
  9. R Lecture Notes #3 (October 24): UsingR-Part3.pdf   covdet.R

Homework

  1. SAS HW 1 (due Mon. Sept. 24): SASHomework1.pdf     bolts.txt   biomed.desc   biomed.dat
    Solutions:   bolts.sas   biomed.sas   biomedFlexible.sas
  2. SAS HW 2 (due Mon. Oct. 8): SASHomework2.pdf     FARS2009PA   (more documentation: FARScodebook.pdf)   FARS.sas
    Solutions:   Solution2.1.sas   Solution2.2.sas   Solution2.3.sas   Solution2.4.sas
  3. R HW 1 (due 10:30 Mon. Oct. 22): RHW1.pdf   Solutions: RHW1.R
  4. R HW 2 (due Friday Nov. 2): RHW2.pdf   cor2cov.R   dropout.csv
    Solutions:   cor2covSol.R   exploreLR.R

Optional Reading

  1. RIntro.R (an introduction to R)
  2. DATA Step Overview
  3. How to Think Through the SAS DATA Step
  4. SAS Cheatsheet (programmer's cabin)