BookmarkSubscribeRSS Feed
AW_Carter
Calcite | Level 5

I am running a repeated measures in Proc Mixed using a repeated statement. I also have a random effect that I would like to include. When I run the model without the random effect, my den. df reflects the number of subjects (as it should). However, as soon as I add in a random statement, my df nearly triples. Why? Is there a way to include a random effect with a repeated measures that doesn't inflate my df?

 

Here is the code with both the random and repeated statements:

 

proc mixed Data=Flux_Devo method=ml;
class id family trt stage;
model CO2lograte= temp|trt|stage mass_start;

random family;
repeated / type=un subject=id r;
run;

 

Thank you!

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
  • 0 replies
  • 323 views
  • 0 likes
  • 1 in conversation