健壮的se. (vcovHC)与R中的texreg一起显示 [英] Robust se. (vcovHC) to be shown with texreg in R
问题描述
我正在使用plm软件包进行一些回归,然后,如果需要,我还将获得异方差一致性系数.下面是我运行的命令;
I am doing some regressions with the plm package, then if needed, I also obtain heteroskedasticity consistent coefficients. Below are the commands that I run;
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输出中?
My problem starts here. Below is the list of commands to obtain a Latex output with the help of the texreg. How can I integrate the result obtained with the coeftest command into the Latex output?
latex_reg <- texreg(list(coeftest_result),
scriptsize=TRUE)
sink(file="/home/heimatlos/R_outputs/reg_jumps.tex", type="output")
操作系统:Debian Squeeze AMD64
OS: Debian Squeeze AMD64
R版本2.15.2(2012-10-26)
R version 2.15.2 (2012-10-26)
texreg版本:1.15
texreg version: 1.15
推荐答案
texreg的1.17版可以做到这一点.请参见项目符号点3 .
Version 1.17 of texreg can do this. See bullet point 3 here.
这篇关于健壮的se. (vcovHC)与R中的texreg一起显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!