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



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

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