[R] getting more than the coefficients

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu Jun 9 19:28:17 CEST 2005


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 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




More information about the R-help mailing list