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-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 lock in 2025 pricing—just $495!

Register now

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