求问各位大佬,stata中想要在分组回归时做一下卡方检验,下述代码可以运行
reg y x1 x2 if m==1
est store a1
reg y x1 x2 if m==0
est store a2
suest a1 a2
test [a1_mean]x1=[a2_mean]x1
但是当y是哑变量时,代码变为
logit y x1 x2 if m==1
est store a1
logit y x1 x2 if m==0
est store a2
suest a1 a2
test [a1_mean]x1=[a2_mean]x1
结果就显示a1_mean not found
想要请教如果因变量变成哑变量,如何做卡方检验呢


雷达卡



京公网安备 11010802022788号







