Hello everyone,
I'm new to SAS and I have a few doubts about how to check for the assumption in a two-way ANOVA.
For what I understand proc univariate looks at the distribution of the variable, not the residuals.
So i have this general script that I put together looking at different posts in SAS cummunities.
Is for a two way anova with interactions with two independent variables (A and B) and a response variable (Y).
PROC glm DATA=data1;
class A B;
model Y= A B A*B;
output out = resid p=predicted rstudent=rstd residual=res;
run;
quit;
Proc gplot data = resid; /*Homocedasticity*/
plot rstd* (predicted);
run;
proc univariate data = resid normal; /*Normality*/
var res;
histogram/normal;
run;
I don't know if this is the most parsimonious way to do this or there is a statement inside MIXED or GLM that I'm missing?
How can I include a QQplot of the sample vs theoretical quantiles?
Thanks for all your help!
Laura
Consider plots=diagnostics, as in:
proc glm data=sashelp.cars plots=diagnostics;
class origin type;
model msrp = origin | type;
run;
Consider plots=diagnostics, as in:
proc glm data=sashelp.cars plots=diagnostics;
class origin type;
model msrp = origin | type;
run;
There was an easier way...
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.