【问题标题】:Removing GOF in texreg with fixest library's feols regression object in R使用 R 中的 fixst 库的 feols 回归对象删除 texreg 中的 GOF
【发布时间】:2022-07-27 03:48:24
【问题描述】:

我在 R 中使用 fixst 库中的 feols,然后使用 texreg / htmlreg 创建表。我想从我的表中排除几个拟合优度度量(AIC、BIC、对数似然等),但 texreg 将我的回归解释为 broom 包中的一个对象:

1: In doTryCatch(return(expr), name, parentenv, handler) :
  texreg used the broom package to extract the following GOF measures, but could not cast them to numeric type: within.r.squaredtexreg used the broom package to extract the following GOF measures, but could not cast them to numeric type: pseudo.r.squared

根据文档,“extract.broom”很遗憾没有任何我可以排除 GOF 的参数。知道我该如何继续吗?

【问题讨论】:

    标签: r broom texreg fixest


    【解决方案1】:

    fixestfeols 应该由 texreg 原生支持。如果不是,提供一个最小的独立示例来重现问题会很有帮助。

    【讨论】:

      【解决方案2】:

      根据source code,模型统计信息中必须缺少输出,在您的情况下,这些输出是 within.r.squared 和 pseudo.r.squared。在使用 texreg 之前,我会检查 feols 的模型输出,看看是否缺少任何一个。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-12-05
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-03-24
        • 1970-01-01
        相关资源
        最近更新 更多