BookmarkSubscribeRSS Feed
trodgers
Calcite | Level 5

Hello,

I am running a repeated measures anova using proc glm. I am not having a problem with the anova itself, but when I do a tukey test at the end, it is giving me pairwise comparisons broken down by each trial (month). What I need is adjusted pairwise comparisons for the entire experiment eg) pairwise experiments between each treatment with all trials (months) combined.

This is what I have entered that is giving me the tukey comparisons broken down my month:

data pl;

input transect habitat M1 M2 M3;

cards;

1 1 6 19 30

2 1 1 1 13

////////////////////////////

17 3 5 28 12

18 1 0 0 8

;

proc glm data=pl;

class habitat;

model m1 m2 m3=habitat / nouni;

repeated month 3;

lsmeans habitat / adjust=tukey;

run;

The output gives me pairwise comparisons between treatments (habitat) for each month (m1 - m2 - m3 ), but I need p values for pairwise comparisons between treatments for the entire experiment (all three months combined).

Does anyone have any idea how I can achieve this?

Thanks,

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 0 replies
  • 1230 views
  • 0 likes
  • 1 in conversation