BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
lauramb
Fluorite | Level 6

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

1 ACCEPTED SOLUTION

Accepted Solutions
PGStats
Opal | Level 21

Consider plots=diagnostics, as in:

 

proc glm data=sashelp.cars plots=diagnostics;
class origin type;
model msrp = origin | type;
run;
PG

View solution in original post

2 REPLIES 2
PGStats
Opal | Level 21

Consider plots=diagnostics, as in:

 

proc glm data=sashelp.cars plots=diagnostics;
class origin type;
model msrp = origin | type;
run;
PG
lauramb
Fluorite | Level 6

There was an easier way...

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
What is ANOVA?

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.

Discussion stats
  • 2 replies
  • 3204 views
  • 2 likes
  • 2 in conversation