- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Consider plots=diagnostics, as in:
proc glm data=sashelp.cars plots=diagnostics;
class origin type;
model msrp = origin | type;
run;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Consider plots=diagnostics, as in:
proc glm data=sashelp.cars plots=diagnostics;
class origin type;
model msrp = origin | type;
run;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
There was an easier way...