简体   繁体   English

稳健的 (vcovHC)与R中的texreg一起显示

[英]Robust se. (vcovHC) to be shown with texreg in R

I am doing some regressions with the plm package, then if needed, I also obtain heteroskedasticity consistent coefficients. 我正在用plm包做一些回归,然后如果需要,我也获得异方差一致系数。 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)

My problem starts here. 我的问题从这里开始。 Below is the list of commands to obtain a Latex output with the help of the texreg. 下面是在texreg的帮助下获取Latex输出的命令列表。 How can I integrate the result obtained with the coeftest command into the Latex output? 如何将使用coeftest命令获得的结果集成到Latex输出中?

latex_reg <- texreg(list(coeftest_result),
                    scriptsize=TRUE) 


sink(file="/home/heimatlos/R_outputs/reg_jumps.tex", type="output")

OS: Debian Squeeze AMD64 OS:Debian挤压AMD64

R version 2.15.2 (2012-10-26) R版本2.15.2(2012-10-26)

texreg version: 1.15 texreg版本:1.15

Version 1.17 of texreg can do this. 版本1.17的texreg可以做到这一点。 See bullet point 3 here . 请参见此处的要点3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM