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!

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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