[R] Customized R Regression Output?

Özgür Asar oasar at metu.edu.tr
Sun May 27 16:42:31 CEST 2012


Your welcome,

To extract R squared values, you can use

summary(lm1)$r.squared

and include it in the cbind as

result1<-cbind(summary(lm1)$coef[,1],summary(lm1)$coef[,1],summary(lm1)$r.squared)

To add the results of multiple outputs you can use rbind such as

rbind(result1,result2) 

where result2 is the output of the second model.

Best
Ozgur


-----
************************************
Ozgur ASAR

Research Assistant
Middle East Technical University
Department of Statistics
06531, Ankara Turkey
Ph: 90-312-2105309
http://www.stat.metu.edu.tr/people/assistants/ozgur/
--
View this message in context: http://r.789695.n4.nabble.com/Customized-R-Regression-Output-tp4631497p4631507.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list