STA 303H1S / 1002HS -- Methods of Data Analysis II
-- Winter 2012
SAS examples from lecture:
The Spock Conspiracy Trial (One-way analysis of variance)
Data (text, csv)
SAS code (text)
SAS output (.lst) (text)
I discovered that some of the output was missing. This has been fixed (Janary 21 at 10:55 p.m.).
Plot from first PROC SGPLOT (Spock's judge versus all other judges):
Side-by-side boxplots for Spock's judges and the other 6 judges (png)
Plots from PROC TTEST:
Summary panel: histograms and boxplots (png)
Normal quantile plots (png)
Plots from first PROC REG (Spock's judge versus all other judges):
Fitted "line" and confidence interval and prediction interval (png)
Diagnostics panel (png)
Residuals versus explanatory variable (png)
Plots from first PROC GLM (Spock's judge versus all other judges):
Side-by-side boxplots (png)
Diagnostics panel (png)
Mean plot from lsmeans statement (png)
"DiffPlot" (diffogram) from lsmeans statement with pdiff option (png)
Plot from second PROC SGPLOT (comparing all judges other than Spock's):
Side-by-side boxplots for the other 6 judges (png)
Plots from second PROC REG (comparing all judges other than Spock's):
Diagnostics panel (png)
Residuals versus explanatory variables (png)
Plots from second PROC GLM (comparing all judges other than Spock's):
Side-by-side boxplots (png)
Diagnostics panel (png)
Plot from third PROC SGPLOT (comparing all 7 judges):
Side-by-side boxplots for the all 7 judges (png)
Plots from third PROC GLM (comparing all 7 judges):
Side-by-side boxplots (png)
Diagnostics panel (png)
Mean plot from lsmeans statement (png)
"DiffPlot" (diffogram) from lsmeans statement with pdiff option and no adjustment (png)
"DiffPlot" (diffogram) from lsmeans statement with pdiff option and Tukey adjustment (png)
"DiffPlot" (diffogram) from lsmeans statement with pdiff option and Bonferroni adjustment (png)
Pygmalion Experiment (Two-way analysis of variance)
Data (text, csv)
SAS code (text)
SAS output (.lst) (text)
Interaction plot from PROC SGPLOT (png)
From first PROC GLM (Two-way analysis of variance with interaction):
Diagnostics panel (png)
Interaction plot with data, means estimated from model (png)
From second PROC GLM (Additive model):
Diagnostics panel (png)
Interaction plot with data, means estimated from model (png)
Side-by-side boxplots by treatment (png) from means statement
Plot of least squares means (estimated from model) for treatment (png) from lsmeans statement
Donner Party (Logistic Regression with Binary Response)
Data (text, csv)
SAS code
SAS output
Plot of data (from proc sgplot)
Plot of predicted probabilities from first logistic model (modelling P(DIED)
Plot of predicted probabilities from second logistic model (modelling P(SURVIVED)
Krunnit (Logistic Regression with Binomial Response)
Data (text, csv)
SAS code (text)
SAS output (text)
Plot of logit of response proportion versus area from first proc sgplot
Plot of logit of response proportion versus log of area from second proc sgplot
Plot of response proportion and model proportions (EffectPlot.png)
Elephants mating (Poisson regression)
Data (csv)
SAS code
Plot of number of matings versus age (png)
SAS output
Framingham longitudinal study (log-linear models)
SAS code
SAS output
Student drug use survey (log-linear models)
SAS code
SAS output
Effect of diet on cholesterol for diabetics (repeated measures)
Data (plain text)
SAS code
SAS output
Interaction plot (png)
Pairwise scatterplots for each pair of times (all observations (png)
Pairwise scatterplots for each pair of times for each diet:
Diet HG (png)
Diet HM (png)
Diet LG (png)
Panel of studentized conditional residuals (png)