楼主: 纯屌丝
36570 30

[一般统计问题] 倾向得分匹配法方面的问题   [推广有奖]

  • 0关注
  • 2粉丝

博士生

40%

还不是VIP/贵宾

-

威望
0
论坛币
882 个
通用积分
22.4594
学术水平
5 点
热心指数
3 点
信用等级
0 点
经验
2178 点
帖子
99
精华
0
在线时间
395 小时
注册时间
2013-1-17
最后登录
2022-2-16

200论坛币
(1)请问大家,我第一步使用logit计算完倾向得分后,我有五个协变量不显著,四个协变量显著。在下一步匹配时,我是用四个显著的协变量进行匹配还是9个协变量全部放进去进行匹配?我用的命令是psmatch2具体命令如下:
logit policy a b c d e f g h i 根据policy将数据分为对照组和实验组,其余a至i是用于匹配的协变量,stata结果显示a b c d显著,其余不显著。
下一步要开始进行核匹配了,问题就是我是将显著的放进去匹配还是全部放进去匹配?

(2)同志们,再追加一个问题啊!psmatch2命令如何 进行平衡性检验?我原来是使用pscore命令的,stata会自动进行平衡性检验,结果会说Balance is satisfied。但是现在我改用psmatch2的命令,然后不知道怎么检验平衡性?是输入命令然后stata自动显示
Balance is satisfied?还是输入什么命令,然后看某些指标然后自己判断?

最佳答案

luhmann 查看完整内容

* 倾向分匹配 * 假定y是因变量 * 个案的随机排序 gen tmp = runiform() sort tmp * 匹配方法:nearest neighbor matching within caliper psmatch2 policy a b c d e f g h i , logit neighbor(1) common caliper(.05) ties * 检验两者的平衡性 pstest a b c d e f g h i * 剔除不显著的变量 psmatch2 policy a b c d , logit neighbor(1) common caliper(.05) ties pstest a b c d * 或 pscore命令来检验平衡性 ...
关键词:倾向得分匹配法 倾向得分匹配 倾向得分 Satisfied psmatch2 下一步 policy 如何
沙发
luhmann 发表于 2013-10-30 12:48:18 |只看作者 |坛友微信交流群
* 倾向分匹配
* 假定y是因变量

* 个案的随机排序
gen tmp = runiform()
sort tmp

* 匹配方法:nearest neighbor matching within caliper
psmatch2 policy a b c d e f g h i , logit neighbor(1) common caliper(.05) ties
* 检验两者的平衡性
pstest a b c d e f g h i
* 剔除不显著的变量
psmatch2 policy a b c d , logit neighbor(1) common caliper(.05) ties
pstest a b c d
* 或 pscore命令来检验平衡性
pscore policy a b c d , pscore(newpscore) logit

* 估计policy对因变量y的效应
psmatch2 policy a b c d, outcome(y) logit neighbor(1) common caliper(.05)

* 平衡性的图示
psgraph
已有 5 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
fisherman + 1 + 1 + 1 精彩帖子
np84 + 100 热心帮助其他会员
绿筱媚青涟 + 3 + 1 + 1 + 1 精彩帖子
dxystata + 50 热心帮助其他会员
Sunknownay + 2 + 2 + 2 热心帮助其他会员

总评分: 经验 + 100  论坛币 + 53  学术水平 + 4  热心指数 + 4  信用等级 + 4   查看全部评分

使用道具

藤椅
buzaichenzui 发表于 2013-10-30 13:30:56 |只看作者 |坛友微信交流群

使用道具

板凳
奥巴驴 学生认证  发表于 2013-11-1 11:51:20 |只看作者 |坛友微信交流群
顶一个!

使用道具

报纸
hplcdadong 发表于 2013-11-2 04:07:30 |只看作者 |坛友微信交流群
1) The logistic regression used for estimation of propensity score is "different" (has special characteristics) from ordinary logistic regression:
        a. Don’t care about the predictive ability of model
        b. Don’t  care about collinearity of covariates
        c. Theoretically, your should select all variables related to your treatment assignment (in your cases, policy) and your outcome
        c. Just care about whether it results in balanced matched samples

In your case, at this time, I would include all your 9 covariates (if you believe all of them are related to treatment assignment and especially your outcome) in the logistic model, then test the matched sample balance

2)By the way, if you use psmatch2, you don't have to use a separate logistic regression model to get the propensity score (although you can). You can integrate propensity score production and ATT estimation into psmatch2 like:

psmatch2 policy a b c d e f g h i, outcome(pollution) logit    //assume pollution is your outcome variable

3) Use  pstest to check your matched sample balance after pamatch2 like:

pstest, both

Good luck
已有 11 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
fisherman + 1 + 1 + 1 精彩帖子
梦离潇湘 + 1 + 1 + 1 精彩帖子
pmt10122260 + 1 + 1 + 1 精彩帖子
westrain + 1 + 1 + 1 精彩帖子
小菜0921 + 5 + 1 + 1 + 1 精彩帖子
np84 + 100 热心帮助其他会员
kz + 1 + 1 + 1 精彩帖子
qinhan88 + 1 + 1 好的意见建议
Sunknownay + 2 + 2 + 2 热心帮助其他会员
Stakiny + 1 热心帮助其他会员

总评分: 经验 + 100  论坛币 + 25  学术水平 + 10  热心指数 + 10  信用等级 + 9   查看全部评分

使用道具

地板
纯屌丝 发表于 2013-11-2 12:56:20 |只看作者 |坛友微信交流群
luhmann 发表于 2013-10-30 12:48
* 倾向分匹配
* 假定y是因变量
谢谢您的回答!

使用道具

7
纯屌丝 发表于 2013-11-2 12:58:57 |只看作者 |坛友微信交流群
hplcdadong 发表于 2013-11-2 04:07
1) The logistic regression used for estimation of propensity score is "different" (has special chara ...
谢谢您的回答!我本想将200个论坛币平均分给你和luhmann,但是论坛好像没有这个功能,只能选一个最佳答案。我权衡了一下,是luhmann先回答的,我就把他的选作最佳答案了,希望您能够谅解。

使用道具

8
24颗米粒 学生认证  发表于 2013-11-3 23:09:43 |只看作者 |坛友微信交流群
哥来看你了
对数据愈苛求,数据会愈多供认,但威逼下的供词在科学法庭上是不容许的。

使用道具

9
kz 发表于 2014-6-12 17:11:59 |只看作者 |坛友微信交流群
hplcdadong 发表于 2013-11-2 04:07
1) The logistic regression used for estimation of propensity score is "different" (has special chara ...
请教一下,选择协变量时考虑同时与 treatment assignment and outcome相关吗?如果某个协变量只与outcome相关,而与 treatment assignment 不相关,那么是否包含这个变量进行logit回归?

使用道具

10
hplcdadong 发表于 2014-6-17 21:18:13 |只看作者 |坛友微信交流群
kz 发表于 2014-6-12 17:11
请教一下,选择协变量时考虑同时与 treatment assignment and outcome相关吗?如果某个协变量只与outcome ...
Covariates associated with treatment assignment and outcome should be in the model. If you know that the covariate is related (only) to outcome, it should be in the model.

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-30 20:02