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
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.