turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Stat Procs
- /
- R square in proc mixed?

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

11-18-2009 08:12 PM

Hi all.

How can I obtain R square in proc mixed or maybe something similar such that I can use in order to know how much variability is explained by the mixed model?

Have a good day. Many thanks in advance.

How can I obtain R square in proc mixed or maybe something similar such that I can use in order to know how much variability is explained by the mixed model?

Have a good day. Many thanks in advance.

Accepted Solutions

Solution

07-06-2017
08:56 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

12-03-2014 02:18 PM

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

All Replies

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

11-19-2009 04:08 PM

I responded to this thread on the SAS-L listserv. Rather than repeating that here, I'll just post a link to my response on SAS-L.

http://listserv.uga.edu/cgi-bin/wa?A2=ind0911c&L=sas-l&F=&S=&P=37753

Dale

http://listserv.uga.edu/cgi-bin/wa?A2=ind0911c&L=sas-l&F=&S=&P=37753

Dale

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

08-13-2014 06:58 PM

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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

08-13-2014 10:16 PM

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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

08-14-2014 08:13 AM

Here is a more recent link to Dale McLerran's post in the SAS-L archives:

Steve Denham

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

12-02-2014 07:24 PM

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?

Solution

07-06-2017
08:56 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

12-03-2014 02:18 PM

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