我正在用plm软件包做一些回归,然后如果需要的话,我还可以获得异方差一致性系数。下面是我运行的命令;
library(plm)
data("Produc", package = "plm")
zz <- plm(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,
data = Produc, index = c("state","year"))
summary(zz)
coeftest(zz, vcovHC)我的问题从这里开始。下面是在texreg的帮助下获取Latex输出的命令列表。如何将coeftest命令得到的结果集成到Latex输出中?
latex_reg <- texreg(list(coeftest_result),
scriptsize=TRUE)
sink(file="/home/heimatlos/R_outputs/reg_jumps.tex", type="output")操作系统: Debian Squeeze AMD64
R版本2.15.2 (2012-10-26)
texreg版本: 1.15
发布于 2013-01-12 07:23:43
1.17版本的texreg可以做到这一点。参见bullet point 3 here。
https://stackoverflow.com/questions/13789303
复制相似问题