全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
6854 7
2012-09-22
使用psmatch2进行配对时,选择好logit模型配对需要的变量后,能否实现同一年度的样本进行配对?一般情况下只是将处理组样本在控制组中选择进行配对,不考虑是否在同一年度,这样结果是不是不可靠?如何能控制在同一年度配对呢?请高手指点。谢谢!
二维码

扫码加我 拉你入群

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

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

全部回复
2012-10-3 12:56:57
        g att = .
         egen g = group(groupvars)
         levels g, local(gr)
         qui foreach j of local gr {
                 psmatch2 treatvar varlist if g==`j', out(outvar)
                 replace att = r(att) if  g==`j'
         }
         sum att
二维码

扫码加我 拉你入群

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

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

2012-10-4 18:01:17
谢谢您,这个命令应该可以实现同一年度内的配对。
二维码

扫码加我 拉你入群

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

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

2012-10-8 15:38:17
大白菜2012 发表于 2012-10-3 12:56
g att = .
         egen g = group(groupvars)
         levels g, local(gr)
你好,我用psmatch2,分组匹配,采用的是帮助文件后面的一堆命令,结果出来的貌似是各个组的att值,怎么从总体上看att值,以及是否显著呢?求指导!
二维码

扫码加我 拉你入群

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

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

2012-10-8 23:15:17
可研院 发表于 2012-10-8 15:38
你好,我用psmatch2,分组匹配,采用的是帮助文件后面的一堆命令,结果出来的貌似是各个组的att值,怎么从 ...
我没有遇到过这样的问题。有人提出了一个解决方案,还有sample code。

http://www.stata.com/statalist/archive/2012-02/msg01112.html

Instead compute your own propensity scores within stratum, then findmatches within stratum for the whole sample by constructing a newscore which is stratum id times 100 plus propensity score, and let-psmatch2- tell you the ATT for the whole sample after matching onthat new score.  Or better, use the propensity scores to reweight, oruse a double robust model.  Either way, I think you should worry aboutclustered errors.  I hope you have more than 12 strata though...

enjoy!



二维码

扫码加我 拉你入群

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

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

2014-8-1 17:38:59
能否通过将年度控制变量放到筛选条件中实现呢?
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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