Zker 发表于 2020-11-5 11:52
感觉我用的STATA15,运用这样操作并没有成功。
那有可能吧,是软件也更新到最新?具体不知道了,我用的是16.1se,没什么问题,下面是11.2se的运行结果,和16的一样。
- asdoc reg price mpg rep78, nest replace
复制代码(1)
price
mpg -271.643***
(57.771)
rep78 666.957*
(342.356)
_cons 9657.754***
(1346.54)
Observations 69
R-squared .251
Standard errors are in parentheses
*** p<.01, ** p<.05, * p<.1
- asdoc reg price mpg rep78, nest replace setstars(***@.001, **@.01, *@.05)
复制代码(1)
price
mpg -271.643***
(57.771)
rep78 666.957
(342.356)
_cons 9657.754***
(1346.54)
Observations 69
R-squared .251
Standard errors are in parentheses
*** p<.001, ** p<.01, * p<.05
- asdoc reg price mpg rep78, nest replace
复制代码结果同上表。*** p<.001, ** p<.01, * p<.05