Run the full model and get the variance component estimates. Then run the model again (with no fixed effects, which is the intercept only model), but specify the variance component(s) in a PARMS statement, and use the hold= option to fix them at the same values.
Steve Denham
I'm trying to access the response to this question as I have the same one, however, the link does not work. Could someone answer it here or help direct to the answer? Thanks.
There have been several discussions of this on this site. There is no unambiguous or unique R2 where then are multiple random effects. But there are some possible metrics that have been used.
Here is a more recent link to Dale McLerran's post in the SAS-L archives:
Steve Denham
Thanks for posting this link, Steve. It seems very helpful. I'm a novice SAS user; could provide some instruction on how to constrain the random effect variance for the intercept only model to be the same as the variance which you observe when
fitting the full model, as instructed in the link?
Run the full model and get the variance component estimates. Then run the model again (with no fixed effects, which is the intercept only model), but specify the variance component(s) in a PARMS statement, and use the hold= option to fix them at the same values.
Steve Denham
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.