Re: [R] Writing GLM/GEE Ouput to Text File

From: jim holtman <jholtman_at_gmail.com>
Date: Mon, 17 Mar 2008 11:07:41 -0500

?capture.output
?sink

On 3/17/08, Charles Willis <willis.charlie_at_gmail.com> wrote:
> Hello,
>
> 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!
>
> charlie
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Charles G. Willis
> Department of Organismic and Evolutionary Biology
> 22 Divinity Ave Cambridge MA 02139
> HP (857) 488-2506
> WP (617) 496-3890
> cgwillis_at_oeb.harvard.edu
> http://www.people.fas.harvard.edu/%7Ecgwillis/
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> [[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.
>

-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?

______________________________________________
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 - 16:28:49 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 - 18: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