从 Stata 的输出 table 中删除随机效应参数

Drop random effects parameters from output table in Stata

我想通过 Stata 中的 xtmixed 估计的混合效应回归创建回归 table(使用 esttab),但我想要没有随机效应参数的输出.如何从输出 table 中删除随机效应参数?例如,在两个变量的情况下...

xtmixed (Dependent Variable) (Independent variable) || (Grouping Variable))

...我不想在 esttab-table 中使用 lns1_1_1lnsig_e 值。最好的方法是什么?

有一个 keep() 和一个 drop() 选项。例如:

webuse productivity, clear

xtmixed gsp private emp hwy water other unemp || region: || state:, mle
estimates store m1

// check result names
matrix list e(b)

// with -keep()- option
estout m1, keep(private emp hwy water other unemp gsp:_cons)

// with -drop()- option
estout m1, drop(lns1_1_1:_cons lns2_1_1:_cons lnsig_e:_cons)

在多方程估计的上下文中,结果矩阵的元素名称由两部分组成。一般形式是 equation-name:varnamematrix list 的结果表明了这一点。之后,只需在 keep()drop() 选项中使用适当的名称即可。

参见[U]14.2 行和列名称了解更多关于命名约定的详细信息。

(回想一下 esttabestout 的包装。)