【问题标题】:Robust se. (vcovHC) to be shown with texreg in R健壮的se。 (vcovHC) 在 R 中与 texreg 一起显示
【发布时间】:2012-12-09 16:31:59
【问题描述】:

我正在使用 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

【问题讨论】:

    标签: r latex regression texreg


    【解决方案1】:

    texreg 1.17 版可以做到这一点。见bullet point 3 here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-06-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-09
      • 2011-04-26
      相关资源
      最近更新 更多