Hi all,
When doing Tukey's HSD, SPSS gives the results of a homogeneous subset (ie., categorizing different groups into different subsets). Just wonder if the same analyses can be done in SAS? If so, how to write the syntax for this?
Thanks,
Chester
I'm not certain, but I think you are looking for the LINES option. Take a look at: http://udel.edu/~mcdonald/statanovaunplanned.html
Yes. proc glm can do it. If you want "multi-compare".
But I am not sure whether it is you find.
Ksharp
Hi Ksharp,
I am not sure what is "multi-compare". What I want is "homogeneous subsets", which look like the last table in the webpage:
http://webpub.allegheny.edu/dept/psych/SPSS/SPSS1bANOVA.html
The reason I ask for this kind of output is that I encountered the situation like this: I have five groups of people (A, B, C, D, and E). B differ from every other group. A does not differ from C, D, and E. However, C differ from D and E, and D do not differ from E. I have lots of analysis results like this, and found it extremely difficult to report them. Therefore, if I can use homogeneous subset (or other possible solutions) then that will be useful.
To art297: I will try your method and see if it works! Thanks!
Chester
Yes. If it were ANOVA. The more information please check the documentation about proc glm.
proc glm;
class A B;
model Y=A B A*B;
means A B / tukey;
means A*B;
run;
Ksharp
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.