1、xtmelogit zcxn(是否中产) hzage(户主年龄) hzage2(户主年两平方) hzgender(户主性别) edu(户主教育程度) danwei(单位性质) gdp(GDP) || y(年份):
在这个命令中GDP是年份层次变量,放在固定效应一起是否正确,如不正确年份层次变量的加入应该怎么写入命令?
2、后一个模型加入了户主教育程度的随机效应,但是输出的结果如何看随机效应部分的检验结果,outreg2也没有给出随机效应的具体检验结果?
xtmelogit zcxn hzage hzage2 hzgender edu danwei gdp || y:
outreg2 using abc,replace
estimates store r_edu
xtmelogit zcxn hzage hzage2 hzgender edu danwei gdp || y: edu , covariance(unstructured)
outreg2 using abc
estimates store r_edu_corr
图1、stata计算结果

图2、outreg2输出结果

3、嵌套模型检验,根据上面计算结果和结果储存,图3是检验结果,这个检验的0假设是什么,结果通过检验说明哪个模型好,是前一个没加入edu的随机效应模型好还是后者加入了edu的随机效应模型好?
lrtest r_edu r_edu_corr
图3、IRTEST检验结果



雷达卡


京公网安备 11010802022788号







