0

我正在寻找一种在 Stata 中导出 Hausman 测试的方法(hausman model1 model2)有人可以帮我吗?

或者,我愿意接受有关如何为我的论文报告在 Stata 中进行的 Hausman 测试结果的任何其他建议。我认为当我报告已经进行时,我需要附加结果(如果我错了,请纠正我!)

4

1 回答 1

1

我不确定导出(导出到 Excel、导出到表格等)是什么意思?

无论如何,从help hausman

hausman stores the following in r():

Scalars   
  r(chi2)        chi-squared
  r(df)          degrees of freedom for the statistic
  r(p)           p-value for the chi-squared
  r(rank)        rank of (V_b-V_B)^(-1)

所以这些是你运行后可以访问的结果hausman。例如:

hausman model1 model2
scalar chi2 = r(chi2)

上面的代码将卡方存储在一个标量中。然后,您可以使用此标量以您想要的方式导出它。

于 2021-04-17T19:27:17.500 回答