全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1681 1
2012-05-21
模型是要用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的。

多谢。




二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2012-5-21 09:43:00
第一次见到这种东西,实在是让我打开眼界啊
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群