首页 文章

删除esttab中的额外列 Headers (Stata)

提问于
浏览
1

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

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

这将在模型编号之后和最左侧列中的"mpg"(因变量)和其他列空白的系数之前生成一行输出 . 这不是模型 Headers , nomtinodepvars 选项不会删除它 .

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

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

我已经完成了 esttabestout 中的选项,我甚至不能确定它可能用于什么目的 . 任何想法如何摆脱这一行?

2 回答

  • 4

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

  • 3

    @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 等使用这些 stored results ,因此表 .

相关问题