Re: [R] getting more than the coefficients

From: Uwe Ligges <>
Date: Fri 10 Jun 2005 - 03:28:17 EST

Dimitri Joe wrote:

> Hi there,
> I am trying to export a regression output to Latex. I am using the xtable function in the xtable library. Doing

You mean the xtable *package*.
> myfit <- lm(myformula, mydata)
> print.xtable(xtable(myfit), file="myfile")
> only returns the estimated coefficients and the correspondent standard erros, t-statiscs and p-values. But I wish to get a bit more, say, the number of observations used in the regresion, the R^2 and F statistics. Any suggestions?

You have to write your own version.
Look at xtable(), hence xtable.lm(), which itself uses xtable.summary.lm()...

Uwe Ligges

> Thanks,
> Dimitri Szerman
> [[alternative HTML version deleted]]
> ______________________________________________
> mailing list
> PLEASE do read the posting guide! mailing list PLEASE do read the posting guide! Received on Fri Jun 10 03:31:55 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:28 EST