Francesco Sarracino
2012-Dec-22 01:06 UTC
[R] texreg error while exporting regression table
Dear listers,
I am trying to export my regression table to my latex document.
Let's say 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 group over weigth, therefore I run:
reg2 <- polr(group ~ weight, Hess = TRUE, method = "logistic",
model = TRUE)
Finally, I wish to include a table with the results in my latex document.
Hence I run:
tt <- texreg(reg2)
but I get the following error:
Error in beta[, 1] : incorrect number of dimensions
Any ideas about what am I doing wrong?
Thanks in advance,
f.
--
Francesco Sarracino, Ph.D.
https://sites.google.com/site/fsarracino/
[[alternative HTML version deleted]]
