s-news
[Top] [All Lists]

Re: Adjusted R square

To: "Kim, YunSuk" <YunSuk.Kim@oregonstate.edu>, <s-news@lists.biostat.wustl.edu>
Subject: Re: Adjusted R square
From: "Barker, Chris" <Chris.Barker@cvt.com>
Date: Fri, 27 Feb 2009 14:58:29 -0800
In-reply-to: <0D23978FCA08B2499683B67DADE76B01AF256E@SAGE.forestry.oregonstate.edu>
Thread-index: AcmZLgEr6r31ENX9SoSRdWezgxtQZgAAKJ3w
Thread-topic: [S] Adjusted R square
 
You can get the adjusted R^2 from the ols() function in the HMISC library.
 
 


From: s-news-owner@lists.biostat.wustl.edu [mailto:s-news-owner@lists.biostat.wustl.edu] On Behalf Of Kim, YunSuk
Sent: Friday, February 27, 2009 2:52
To: s-news@lists.biostat.wustl.edu
Subject: [S] Adjusted R square

Hi all,
 
Earlier I asked for a method to obtain Partial R square for each variable in a model.  I also need the adjusted R square value from a regression model. 
 
In the archive, I found someone gave the code;
 
model1<-lm(y<-x1+x2)
test <-(summary(model1))$adj.r.squared
 
When I tried this, I got NULL.  Has the function changed since last 4 years or so?  If anyone can show me how to obtain adjusted R2 (and Partial R2 too), i really appreciate it. 
 
Thank you for any help!
 
yuni
 
 
 
 
 
 
 
 
<Prev in Thread] Current Thread [Next in Thread>