Re: [R] latex function with lm

From: Karl Ove Hufthammer <karloh_at_mi.uib.no>
Date: Thu 22 Jun 2006 - 02:20:32 EST

Erin Hodgess skreiv:

> However, I have a new question regarding that function:
> is there an option for summary(lm(y~x)), please?  There are
> options for different types of objects, but I didn't see one
> for that.  Maybe I just missed it.

FWIW: I find that the following works fairly well for printing the table part of summary.lm:

library(Hmisc)
library(xtable)
latex(xtable(l), booktabs=TRUE, digits=2)

-- 
Karl Ove Hufthammer

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu Jun 22 03:34:50 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 22 Jun 2006 - 04:12:15 EST.

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