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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 979 views
  • 0 likes
  • 2 in conversation