SAS programs

  • SAS 9.3 documentation for procedures.
  • SAS 9.3 language documentation (for data steps)
  • Creativity.sas Randomization and T tests comparing means from two independent samples.
  • Pairedt.sas Code to do a paired t test in either PROC MEANS or PROC UNIVARIATE. PROC MEANS also computes confidence interval for mean difference. PROC UNIVARIATE also computes the nonparametric sign and Wilcoxon signed rank tests.
  • Hamburger.sas Code to do nonparametric 2 sample test (Wilcoxon rank sum test).
  • calcmeans.sas Code to calculate averages over subsamples
  • Dietall.sas Calculating log transformations, ANOVA and 'After the ANOVA' analyses: linear contrasts, multiple comparisons
  • fdr.sas False discovery rate adjustment, starting with p-values. Running multiple analyses and saving the p-values.
  • readcharacter.sas SAS-specific issues reading character data.
  • meat1.sas Linear regression using proc glm or proc reg. Estimating slope and intercept.
  • meat.sas More linear regression: confidence and prediction intervals, ANOVA lack of fit test, various bells and whistles in proc sgplot.
  • levene.sas Program to implement Levene's test of equal variances (not discussed in lab)
  • p-values.sas Using SAS to compute two-sided p-values from T statistics, p-values from F statistics, and quantiles of a T distribution (not discussed in lab).
  • brain.sas scatterplot matrices, Multiple linear regression using PROC GLM and PROC REG.
  • corn.sas Calculating polynomial terms.
  • light.sas Constructing indicator variables. Fitting multiple regression models with indicator variables. Note: Uses light.txt data file.