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.
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.