[R] Is there a way to export regression output to an excel spreadsheet?
chuck.01
CharlieTheBrown77 at gmail.com
Sat Nov 10 04:31:15 CET 2012
Yes.
see:
?lm
?coef
?write.csv
also, if
fit <- lm(Y~X)
then:
slope_p-value <- summary(fit)[[4]][2,4]
Double check that last one for yourself.
Good luck.
hoguejm wrote
> I want to export the coefficient values and p-values from my regression
> output into a spreadsheet. Is there a way to do this?
--
View this message in context: http://r.789695.n4.nabble.com/Is-there-a-way-to-export-regression-output-to-an-excel-spreadsheet-tp4649155p4649156.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list