Dear R People: I have used the "latex" function from the Hmisc package and it is just great! 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. Thanks in advance! R for Windows Version 2.3.1 Sincerely, Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: hodgess at gator.uhd.edu
Erin Hodgess <hodgess <at> gator.dt.uh.edu> writes:> I have used the "latex" function from the Hmisc > package and it is just great! > > 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 oneI have written one (also form lme) in a library called Dmisc. It passes CRAN tests, but as it's a bit my personal taste, I have not submitted it to CRAN. Main feature is that reduces show number of digits per line by looking at the standard deviation. Too many people loved Excel-type 12 decimals. You may try it as starter. http://www.menne-biomed.de/download Dieter
Erin Hodgess wrote:> Dear R People: > > I have used the "latex" function from the Hmisc > package and it is just great! > > 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.There is no latex method for summary(lm); contributions welcomed. You might also look at latex.ols, latex.anova.Design, latex.summary.Design. Frank> > Thanks in advance! > > R for Windows Version 2.3.1 > > Sincerely, > Erin Hodgess > Associate Professor > Department of Computer and Mathematical Sciences > University of Houston - Downtown > mailto: hodgess at gator.uhd.edu > > ______________________________________________ > R-help at 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 >-- Frank E Harrell Jr Professor and Chair School of Medicine Department of Biostatistics Vanderbilt University
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