Re: [R] getting more than the coefficients

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
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]]
>
> ______________________________________________
> 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



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 Fri Jun 10 03:31:55 2005

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