BookmarkSubscribeRSS Feed
SAS_Muggle
Fluorite | Level 6

I have some data where I have 2 dependent variables, method (1 or 2), and location (1, 2, 3, or 4).

I ran an anova and got a significant result. Thus I want to do post hoc comparisons. I'm not interested in all comparisons, but only for location1 (method 1 vs 2), for location2 (method 1 vs 2), etc. How can I do this in proc glm?

 

I need these adjusted p-values to report in my paper. Is the only way to do it using contrasts and then adjust my alpha (bonferroni)? I think it will be too conservative.

1 REPLY 1
Ksharp
Super User
You could use
LSMEANS locateion/diff pdiff adjust=turkey ;
and choose the mothod you like.


Also could use ESTIMATES rather than CONTRAST:
https://support.sas.com/kb/38/384.html

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 521 views
  • 0 likes
  • 2 in conversation