-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
project.org] On Behalf Of fxen3k
Sent: Tuesday, October 23, 2012 1:28 PM
To: r-help at r-project.org
Subject: [R] Export summary from regression output
Hi there,
I tried it many times but didn't get it worked.
I just want to export the summary of a OLS regression (lm() function)
into a csv-file including the "call"-formula", "coefficients", "r-
squared", "
adjusted r-squared" and "f statistic".
I know I can export:
write.csv2(Regression_60d_ann$coefficients, "Regression_60d_ann.csv")
But then I only get the coefficients, but not all the other output...
I tried creating a matrix and I wanted to put in
Regression_60d_ann$coefficients, Regression_60d_ann$adj.r.squared,
Regression_60d_ann$r.squared, etc. but it didn't work due to different
length of rows.
Can anyone help or has a better solution?
Thanks in advance
Felix
--
View this message in context: http://r.789695.n4.nabble.com/Export-
summary-from-regression-output-tp4647109.html
Sent from the R help mailing list archive at Nabble.com.