On Fri, 14 May 2004 10:13:47 +0200 Ulrich Leopold <uleopold at science.uva.nl> wrote:> Dear list, > > I would like to export the summary statistics of a regression to latex > code. Is there an easy way of doing that? > > UlrichDepending on the regression model and the summary statistics, you can use the latex function in the Design package to typeset certain model fits in algebraic notation and to get ANOVA and effect tables. Do ?summary.Design ?latex.ols ?anova.Design for more info. Frank Harrell> > -- > __________________________________________________ > > Ulrich Leopold MSc. > > Computational Bio- and Physical Geography (CBPG) > Institute for Biodiversity and Ecosystem Dynamics (IBED) > Faculty of Science > University of Amsterdam > Nieuwe Achtergracht 166 > NL-1018WV Amsterdam > > Room: B2.52 > Phone: +31 20 525 7456 (7451 Secretary) > Fax: +31 20 525 7431 > Mobile: +31 64 220 3028 > Email: uleopold at science.uva.nl > URL: www.science.uva.nl/ibed/cbpg > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.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
Dear list, I would like to export the summary statistics of a regression to latex code. Is there an easy way of doing that? Ulrich -- __________________________________________________ Ulrich Leopold MSc. Computational Bio- and Physical Geography (CBPG) Institute for Biodiversity and Ecosystem Dynamics (IBED) Faculty of Science University of Amsterdam Nieuwe Achtergracht 166 NL-1018WV Amsterdam Room: B2.52 Phone: +31 20 525 7456 (7451 Secretary) Fax: +31 20 525 7431 Mobile: +31 64 220 3028 Email: uleopold at science.uva.nl URL: www.science.uva.nl/ibed/cbpg
On 14 May 2004 at 10:13, Ulrich Leopold wrote:> Dear list, > > I would like to export the summary statistics of a regression to latex > code. Is there an easy way of doing that? > > Ulrich >See function latex() in package Hmisc Kjetil Halvorsen> -- > __________________________________________________ > > Ulrich Leopold MSc. > > Computational Bio- and Physical Geography (CBPG) > Institute for Biodiversity and Ecosystem Dynamics (IBED) > Faculty of Science > University of Amsterdam > Nieuwe Achtergracht 166 > NL-1018WV Amsterdam > > Room: B2.52 > Phone: +31 20 525 7456 (7451 Secretary) > Fax: +31 20 525 7431 > Mobile: +31 64 220 3028 > Email: uleopold at science.uva.nl > URL: www.science.uva.nl/ibed/cbpg > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html >
There is also the xtable package. -Don> library(xtable) > x <- 1:3 ; y <- rnorm(3) > foo <- lm(y~x) > fooCall: lm(formula = y ~ x) Coefficients: (Intercept) x -2.552 1.090> bah <- xtable(foo) > bah% latex table generated in R 1.9.0 by xtable 1.2-3 package % Mon May 17 07:18:40 2004 \begin{table}[ht] \begin{center} \begin{tabular}{rrrrr} \hline & Estimate & Std. Error & t value & Pr($>$$|$t$|$) \\ \hline (Intercept) & $-$2.5523 & 2.1197 & $-$1.20 & 0.4412 \\ x & 1.0900 & 0.9812 & 1.11 & 0.4666 \\ \hline \end{tabular} \end{center} \end{table} At 10:13 AM +0200 5/14/04, Ulrich Leopold wrote:>Dear list, > >I would like to export the summary statistics of a regression to latex code. >Is there an easy way of doing that? > >Ulrich > >-- >__________________________________________________ > >Ulrich Leopold MSc. > >Computational Bio- and Physical Geography (CBPG) >Institute for Biodiversity and Ecosystem Dynamics (IBED) >Faculty of Science >University of Amsterdam >Nieuwe Achtergracht 166 >NL-1018WV Amsterdam > >Room: B2.52 >Phone: +31 20 525 7456 (7451 Secretary) >Fax: +31 20 525 7431 >Mobile: +31 64 220 3028 >Email: uleopold at science.uva.nl >URL: www.science.uva.nl/ibed/cbpg > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://www.stat.math.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html-- -------------------------------------- Don MacQueen Environmental Protection Department Lawrence Livermore National Laboratory Livermore, CA, USA