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

2020-04-12 09:03发布

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)

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")

OS: Debian Squeeze AMD64

R version 2.15.2 (2012-10-26)

texreg version: 1.15

1条回答
霸刀☆藐视天下
2楼-- · 2020-04-12 09:29

Version 1.17 of texreg can do this. See bullet point 3 here.

查看更多
登录 后发表回答