[R] stepAIC: plot predicted versus observed
sergeetienneparent
separent at yahoo.com
Tue Dec 14 16:49:57 CET 2010
I figured out how to call coefficients and R² from the summary.
-----------------
fit<-lm(...) #multiple regression function
stepComp <- stepAIC(fit, direction="both")
summary(stepComp)$coef[1,1] #call first coefficient
summary(stepComp)$coef[1,2] #call Std. Error of first coefficient
summary(stepComp)$coef[2,1] #call second coefficient
#... so on...
#And the R² can be called by
summary(stepComp)$adj.r.squared #call adjusted R²
summary(stepComp)$r.squared #call multiple R²
--
View this message in context: http://r.789695.n4.nabble.com/stepAIC-plot-predicted-versus-observed-tp3085991p3087345.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list