[R] How to output glm summary to csv file

From: Chua Siang Li <siang.li.chua_at_acceval-intl.com>
Date: Tue, 17 Jun 2008 11:12:14 +0800

   Hello there. I am new to R.
   I want to output the coefficients and their significance value (Pr(>|z|)    into a csv file. I managed to do it for the "coefficients" but not their    significances. Pls help. Thanks.
   mylogit<- glm(response~price, family=binomial(link="logit"),    na.action=na.pass)

   write.csv(c(mylogit$coefficients), file="result.csv")    write.csv(I(summary(mylogit)), file="result.csv", append=T) #neither does    this shows Pr(>|z|)

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. Received on Tue 17 Jun 2008 - 03:16:35 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 17 Jun 2008 - 12:30:50 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive