Skip to content
Back to formatted view

Raw Message

Message-ID: <1338129751334-4631507.post@n4.nabble.com>
Date: 2012-05-27T14:42:31Z
From: Özgür Asar
Subject: Customized R Regression Output?
In-Reply-To: <1338129297022-4631505.post@n4.nabble.com>

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.