hoguejm
2012-Nov-10 03:13 UTC
[R] Is there a way to export regression output to an excel spreadsheet?
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-tp4649155.html Sent from the R help mailing list archive at Nabble.com.
chuck.01
2012-Nov-10 03:31 UTC
[R] Is there a way to export regression output to an excel spreadsheet?
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.
hoguejm
2012-Nov-10 03:43 UTC
[R] Is there a way to export regression output to an excel spreadsheet?
I am very very new with R. Needless to say, your comment is a bit confusing. My regression name is "mylogit" Anyway to write a code that I can copy paste? Thanks -- View this message in context: http://r.789695.n4.nabble.com/Is-there-a-way-to-export-regression-output-to-an-excel-spreadsheet-tp4649155p4649157.html Sent from the R help mailing list archive at Nabble.com.
Duncan Mackay
2012-Nov-10 05:37 UTC
[R] Is there a way to export regression output to an excel spreadsheet?
Hi If you want a formatted output then some of the packages may be of use library(R2THML) ?HTML.ftable library(xtable) ? xtable there may be functions in the Hmisc /rms packages as well Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mackay at northnet.com.au At 13:13 10/11/2012, you 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-tp4649155.html >Sent from the R help mailing list archive at Nabble.com. > >______________________________________________ >R-help at 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.