Re: [R] How to output glm summary to csv file

From: Jim Lemon <>
Date: Tue, 17 Jun 2008 21:40:34 +1000

Chua Siang Li wrote:
> 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)
> summary(mylogit)
> write.csv(c(mylogit$coefficients), file="result.csv")
> write.csv(I(summary(mylogit)), file="result.csv", append=T) #neither does
> this shows Pr(>|z|)

Hi Chua,
delim.table in the prettyR package might do what you want.

Jim mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue 17 Jun 2008 - 11:40:37 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 Please read the posting guide before posting to the list.

list of date sections of archive