【问题标题】:Remove extra column title in esttab (Stata)删除 esttab (Stata) 中的额外列标题
【发布时间】:2015-03-27 05:39:30
【问题描述】:

我正在使用estout 为 LaTeX 准备回归表。似乎在存储非线性模型时,输出中有一个额外的行,我似乎无法关闭或删除。作为 MWE,请考虑:

sysuse auto, clear
eststo clear 
eststo: poisson mpg rep78 
esttab, tex nomti nodepvars

这将在模型编号之后和系数之前产生一行输出,最左边的列中带有“mpg”(因变量),其他列为空白。这不是模型标题,nomtinodepvars 选项不会删除它。

奇怪的是,当回归为 OLS 时,此行不会显示。但是,此行确实出现在以下使用 OLS 和 Poisson 的示例中,现在包含“main”:

sysuse auto, clear
eststo clear
eststo: reg mpg rep78
eststo: poisson mpg rep78
esttab, tex nomti nodepvars

我已经浏览了esttabestout 中的选项,但我找不到任何似乎关闭这一行的选项(我什至不确定它可能起到什么作用)。任何想法如何摆脱这一行?

【问题讨论】:

    标签: stata


    【解决方案1】:

    将选项 eqlabels(none) 添加到您的 esttab。

    【讨论】:

      【解决方案2】:

      @Dimitriy 已发布解决方案。

      作为旁注,请考虑为什么会发生这种情况:

      regress 的系数矩阵如下所示:

      . matrix list e(b)
      
      e(b)[1,2]
              rep78      _cons
      y1  2.3842975  13.169421
      

      而对于poisson

      . matrix list e(b)
      
      e(b)[1,2]
                mpg:       mpg:
              rep78      _cons
      y1  .11242548  2.6692439
      

      estoutesttab 等使用这些存储的结果,因此使用表格。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2022-10-14
        • 1970-01-01
        • 2021-11-05
        • 2015-07-06
        • 2014-01-13
        • 2014-05-20
        相关资源
        最近更新 更多