With the exception of Lab 01, you should download and open up the scripts associated with the chapters we will cover in lab.

  • Lab 01: SAS v R
  • Lab 02: SAS and R
    • Pvalues
    • Critical values
    • Paired t-test
    • Two-sample t-test
  • Lab 03: SAS and R
    • Two-sample t-test using logs
  • Lab 04: SAS and R
    • Sign test
    • Signed rank test
    • Rank sum test
  • Lab 05: SAS and R
    • One-way ANOVA F-tests
    • Pairwise comparisons
    • General F-tests
    • Getting residuals
  • Lab 06: SAS and R
    • Contrasts
    • Multiple comparison adjustments
  • Lab 07: SAS and R
    • Simple linear regression
  • Lab 08: SAS and R
    • Regression diagnostics
  • Lab 09: SAS and R
    • Multiple regression model construction
      • Higher order terms
      • Additional explanatory variables
      • Dummy/indicator variables for categorical explanatory variables
      • Interactions
  • Lab 10: SAS and R
    • LSMEANS
    • Contrasts
    • Predictions
  • Lab 11: SAS and R
    • Regression diagnostics
      • Leverage
      • Cook’s D
      • Studentized residuals
  • Lab 12: SAS and R
    • Variable selection
      • AIC
      • BIC
      • Stepwise selection
  • Lab 13: SAS and R
    • Two-way ANOVA
  • Lab 20: SAS and R
  • Lab 21: SAS and R
  • Lab 22: SAS and R

Other scripts

  • F-tests: SAS and R
  • Subsetting: SAS and R
  • Random effects: SAS and R