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-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

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