*clear all且mlogit之后,run以下(其中的0向量对应参照组):
mat a=e(b)'
loc m=e(k_out)
loc n=1+e(df_m)/(`m'-1)
forv i=1/`m'{
mat B=(nullmat(B),a[(`i'-1)*`n'+1..`i'*`n',1...])
}
n mat l B
好想~~~ 发表于 2010-3-14 11:43
mlogit occu edugrade exp exp2 darea1 darea2 darea3 if gender==1
mat a=e(b)'
loc m=e(k_out)
loc n=1+e(df_m)/(`m'-1)
forv i=1/`m'{
mat B=(nullmat(B),a[(`i'-1)*`n'+1..`i'*`n',1...])
}
n mat l B