[R] Writing GLM/GEE Ouput to Text File

From: Charles Willis <willis.charlie_at_gmail.com>
Date: Mon, 17 Mar 2008 10:52:56 -0400


How can one write the output of a GLM/GEE model to a text file, such that the results appear in text file in the same (or similar) format they appear in the R console? For instance, I have the following model:

Traitresult <- compar.gee(Y~X, data = data, family = "binomial", phy = tree, scale.fix = TRUE, scale.value = 1)

How would I write "Traitresult" to a text file? I have tried using the write, write.table, and save functions, but they are not working, giving me either a warning that 'Traitresult' is not a list or giving me a text file with a bunch of symbol gibberish.

Thank you!


Charles G. Willis
Department of Organismic and Evolutionary Biology 22 Divinity Ave Cambridge MA 02139
HP (857) 488-2506
WP (617) 496-3890

        [[alternative HTML version deleted]]

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 Mon 17 Mar 2008 - 15:07:47 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 Mon 17 Mar 2008 - 17:30:22 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