紧急求助*例子6;xtlogit 模型*面板数据的其他命令,也是类似,一定要去查manual里面的介绍
webuse union,clear
xtlogit union age grade i.not_smsa south##c.year
margins,dydx(*) predict(pu0)
假如跟tab rep78 /*rep78有5种值*/
mlogit rep78 mpg displ, base(5) /*第五个为参照组,具体模型看计量经济学*/
*mlogit回归结果有多个方程,因此,需要计算不同方程的边际影响
*计算rep78分别等于1,2,3时的边际影响
margins, dydx(*) predict(outcome(1))
margins, dydx(*) predict(outcome(2))
margins, dydx(*) predict(outcome(3))
这样类似的时候 PU0该如何替换呢?
|