[R] rms: getting adjusted R^2 from ols object

Mark Difford mark_difford at yahoo.co.uk
Wed Mar 9 11:14:24 CET 2011


On Mar 09, 2011; 11:09am Mark Seto wrote:

>> How can I extract the adjusted R^2 value from an ols object (using rms
>> package)? 

>> library(rms) 
>> x <- rnorm(10) 
>> y <- x + rnorm(10) 
>> ols1 <- ols(y ~ x)

##
ols1$stats
ols1$stats[4]

Regards, Mark.

--
View this message in context: http://r.789695.n4.nabble.com/rms-getting-adjusted-R-2-from-ols-object-tp3343118p3343220.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list