模型是要用multi period logit model。跟single logit model的区别就在于,他使用了所有的历史数据。STATA里面叫做shumhaz的命令可以实现这个过程。但是我还是看不懂他的do 文件,所以不能保证他做的就是对的。
关键就是下面这一段实在是看不懂…… 看了好多天了,快死了
if "`weight'"=="" {
if trim("``opt2''")=="" qui logit `tmplhs' ``rhsvars'' if `touse' & (`tmplhs'==0 | (`tmplhs'==1 & L.`tmplhs'==0 & L.`touse'==1))
else qui logit `tmplhs' ``rhsvars'' if `touse' & (`tmplhs'==0 | (`tmplhs'==1 & L.`tmplhs'==0 & L.`touse'==1)), ``opt2''
}
else {
if trim("``opt2''")=="" qui logit `tmplhs' ``rhsvars'' if `touse' & (`tmplhs'==0 | (`tmplhs'==1 & L.`tmplhs'==0 & L.`touse'==1)) [aweight=`exp']
else qui logit `tmplhs' ``rhsvars'' if `touse' & (`tmplhs'==0 | (`tmplhs'==1 & L.`tmplhs'==0 & L.`touse'==1)) [aweight=`exp'], ``opt2''
}
这一段是什么意思啊?有没有大侠能够帮我讲一讲的。 真的很急,为了感谢你我可以pay的。
多谢。