强大的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屋!