BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Melk
Lapis Lazuli | Level 10

I am running an ANOVA (on change score controlling for pre) on some pre-post data for a 2 group randomized trial. I have 1 pre and 1 post measurement. I want a p-value for the within group change from pre to post for each group, separately. Any way I can output this in my GLM model?

1 ACCEPTED SOLUTION

Accepted Solutions
sld
Rhodochrosite | Level 12 sld
Rhodochrosite | Level 12

If your response variable is the difference = (pre - post) such that you have a model statement that looks something like

class group;
model difference = group;
lsmeans group / cl;

then could you test whether the estimate of each group mean is different from zero? You could even put a confidence interval around the estimate.

View solution in original post

4 REPLIES 4
Reeza
Super User

Do you mean you want the ANOVA run for each group separately? If so, try using a BY statement.

Melk
Lapis Lazuli | Level 10

What p-value would give me the significance of the difference between pre and post then?

sld
Rhodochrosite | Level 12 sld
Rhodochrosite | Level 12

If your response variable is the difference = (pre - post) such that you have a model statement that looks something like

class group;
model difference = group;
lsmeans group / cl;

then could you test whether the estimate of each group mean is different from zero? You could even put a confidence interval around the estimate.

Melk
Lapis Lazuli | Level 10

Don't know why I didn't think of that - thanks!

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 3290 views
  • 3 likes
  • 3 in conversation