[R] Esttab error while exporting regression results
Yihui Xie
xie at yihui.name
Fri Dec 28 06:36:26 CET 2012
I cannot reproduce your problem with the latest version of knitr
(0.9). This minimal document works fine for me:
\documentclass{article}
\begin{document}
<<test, results='asis'>>=
group <- gl(3,5,20, labels=c("Ctl","Trt","prp"))
weight <- runif(20)
reg1 <- lm(weight ~ group)
library(estout)
eststo(reg1)
esttab()
@
\end{document}
Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA
On Sun, Dec 23, 2012 at 5:42 PM, Francesco Sarracino
<f.sarracino at gmail.com> wrote:
> Dear listers,
>
> I am trying to export a regression output to a latex document using the R
> package eststo.
> I have two variables:
> an ordered factor:
> group <- gl(3,5,20, labels=c("Ctl","Trt","prp"))
> and a continuous variable:
> weight <- runif(20)
>
> I want to regress weight over group, therefore I run:
>
> reg1 <- lm(weight ~ group)
>
> I wish to include the output of my regression in a latex document. I am
> using Knitr. Hence I type:
>
> eststo(reg1)
> and
> esttab()
>
> but I get the following error:
>
> Error in esttab() : object 'adds' not found
>
>
> I don't understand what's going on. Does anybody have any ideas about
> what is going on?
>
> Thanks in advance for your help ,
>
> f.
>
>
> --
> Francesco Sarracino, Ph.D.
> https://sites.google.com/site/fsarracino/
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list