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

2011-03-09 Thread Mark Difford
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:/

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

2011-03-09 Thread Peter Ehlers
Ehlers -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Mark Seeto Sent: 09 March 2011 09:10 To: r-help@r-project.org Subject: [R] rms: getting adjusted R^2 from ols object How can I extract the adjusted R^2 value from an ols o

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

2011-03-09 Thread Martyn Byng
rk Seeto Sent: 09 March 2011 09:10 To: r-help@r-project.org Subject: [R] rms: getting adjusted R^2 from ols object 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) Typing "ols1" disp

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

2011-03-09 Thread Mark Seeto
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) Typing "ols1" displays adjusted R^2 among other things, but how can I assign it to a variable? I tried str(ols1) but couldn't see where to go from the