Baidu
map

干货:PSM倾向匹配Stata操作详细步骤和代码,

2018-08-22 周支瑞 周支瑞

试验设计中,匹配的目的在于确保干预效应估计是建立在可比个体之间的不同结果的基础上。最简单的匹配方式是将干预组和对照组中协变量值相同的两个个体进行配对分析。但是,如果协变量并不是某一个变量,而是一组变量时,这种简单的匹配方式也就不再适用,而是采用倾向得分匹配方式进行匹配。倾向性匹配得分(PSM)分析,主流统计学软件SAS、Stata、SPSS(22.0以上版本)、R语言均可实现。但SAS难度较高

试验设计中,匹配的目的在于确保干预效应估计是建立在可比个体之间的不同结果的基础上。最简单的匹配方式是将干预组和对照组中协变量值相同的两个个体进行配对分析。但是,如果协变量并不是某一个变量,而是一组变量时,这种简单的匹配方式也就不再适用,而是采用倾向得分匹配方式进行匹配。倾向性匹配得分(PSM)分析,主流统计学软件SAS、Stata、SPSS(22.0以上版本)、R语言均可实现。但SAS难度较高,不推荐;SPSS虽然操作简便,但是仅能实现1:1匹配,如无特殊需求可以尝试。笔者重点推荐使用Stata或者R语言完成PSM分析。下面笔者将以实例演示的形式讲解Stata软件在倾向性匹配得分中的应用。 1.安装psmatch2统计包。 命令如下: .ssc install psmatch2 需要在联网状态下键入上述命令,然后软件自动搜索对应的程序包进行安装,成功安装后会有以下提示: checking psmatch2 consistency and verifying not already installed... installing into .\ado\plus\... installat

版权声明:
本网站所有内容来源注明为“梅斯医学”或“MedSci原创”的文字、图片和音视频资料,版权均属于梅斯医学所有。非经授权,任何媒体、网站或个人不得转载,授权转载时须注明来源为“梅斯医学”。其它来源的文章系转载文章,或“梅斯号”自媒体发布的文章,仅系出于传递更多信息之目的,本站仅负责审核内容合规,其内容不代表本站立场,本站不负责内容的准确性和版权。如果存在侵权、或不希望被转载的媒体或个人可与我们联系,我们将立即进行删除处理。
在此留言
评论区 (4)
#插入话题
  1. [GetPortalCommentsPageByObjectIdResponse(id=2213773, encodeId=18162213e73a0, content=支持一下, beContent=null, objectType=article, channel=null, level=null, likeNumber=43, replyNumber=0, topicName=null, topicId=null, topicList=[], attachment=null, authenticateStatus=null, createdAvatar=null, createdBy=cfe21957717, createdName=黑羽盗一, createdTime=Sun Jul 07 21:29:03 CST 2024, time=2024-07-07, status=1, ipAttribution=浙江省), GetPortalCommentsPageByObjectIdResponse(id=927013, encodeId=c36592e013ac, content=老师您好,我在写作论文时需要用到PSM-DID分析方法,非常想阅读一下您的文章,但我因积分不足无法阅读原文,在积分商城也未找到获取积分的方法, beContent=null, objectType=article, channel=null, level=null, likeNumber=95, replyNumber=0, topicName=null, topicId=null, topicList=[], attachment=null, authenticateStatus=null, createdAvatar=null, createdBy=51b85462943, createdName=ms9000000768481009, createdTime=Thu Feb 25 07:32:36 CST 2021, time=2021-02-25, status=1, ipAttribution=), GetPortalCommentsPageByObjectIdResponse(id=1466060, encodeId=de31146606046, content=<a href='/topic/show?id=217c292009' target=_blank style='color:#2F92EE;'>#ATA#</a>, beContent=null, objectType=article, channel=null, level=null, likeNumber=67, replyNumber=0, topicName=null, topicId=null, topicList=[TopicDto(id=2920, encryptionId=217c292009, topicName=ATA)], attachment=null, authenticateStatus=null, createdAvatar=, createdBy=387a6772119, createdName=bbjsj_1981, createdTime=Fri Aug 24 07:14:00 CST 2018, time=2018-08-24, status=1, ipAttribution=), GetPortalCommentsPageByObjectIdResponse(id=1487414, encodeId=df77148e4149a, content=<a href='/topic/show?id=7cea16e605a' target=_blank style='color:#2F92EE;'>#stata#</a>, beContent=null, objectType=article, channel=null, level=null, likeNumber=71, replyNumber=0, topicName=null, topicId=null, topicList=[TopicDto(id=16760, encryptionId=7cea16e605a, topicName=stata)], attachment=null, authenticateStatus=null, createdAvatar=null, createdBy=e76d8309257, createdName=李研东, createdTime=Fri Aug 24 07:14:00 CST 2018, time=2018-08-24, status=1, ipAttribution=)]
    2024-07-07 黑羽盗一 来自浙江省

    支持一下

    0

  2. [GetPortalCommentsPageByObjectIdResponse(id=2213773, encodeId=18162213e73a0, content=支持一下, beContent=null, objectType=article, channel=null, level=null, likeNumber=43, replyNumber=0, topicName=null, topicId=null, topicList=[], attachment=null, authenticateStatus=null, createdAvatar=null, createdBy=cfe21957717, createdName=黑羽盗一, createdTime=Sun Jul 07 21:29:03 CST 2024, time=2024-07-07, status=1, ipAttribution=浙江省), GetPortalCommentsPageByObjectIdResponse(id=927013, encodeId=c36592e013ac, content=老师您好,我在写作论文时需要用到PSM-DID分析方法,非常想阅读一下您的文章,但我因积分不足无法阅读原文,在积分商城也未找到获取积分的方法, beContent=null, objectType=article, channel=null, level=null, likeNumber=95, replyNumber=0, topicName=null, topicId=null, topicList=[], attachment=null, authenticateStatus=null, createdAvatar=null, createdBy=51b85462943, createdName=ms9000000768481009, createdTime=Thu Feb 25 07:32:36 CST 2021, time=2021-02-25, status=1, ipAttribution=), GetPortalCommentsPageByObjectIdResponse(id=1466060, encodeId=de31146606046, content=<a href='/topic/show?id=217c292009' target=_blank style='color:#2F92EE;'>#ATA#</a>, beContent=null, objectType=article, channel=null, level=null, likeNumber=67, replyNumber=0, topicName=null, topicId=null, topicList=[TopicDto(id=2920, encryptionId=217c292009, topicName=ATA)], attachment=null, authenticateStatus=null, createdAvatar=, createdBy=387a6772119, createdName=bbjsj_1981, createdTime=Fri Aug 24 07:14:00 CST 2018, time=2018-08-24, status=1, ipAttribution=), GetPortalCommentsPageByObjectIdResponse(id=1487414, encodeId=df77148e4149a, content=<a href='/topic/show?id=7cea16e605a' target=_blank style='color:#2F92EE;'>#stata#</a>, beContent=null, objectType=article, channel=null, level=null, likeNumber=71, replyNumber=0, topicName=null, topicId=null, topicList=[TopicDto(id=16760, encryptionId=7cea16e605a, topicName=stata)], attachment=null, authenticateStatus=null, createdAvatar=null, createdBy=e76d8309257, createdName=李研东, createdTime=Fri Aug 24 07:14:00 CST 2018, time=2018-08-24, status=1, ipAttribution=)]
    2021-02-25 ms9000000768481009

    老师您好,我在写作论文时需要用到PSM-DID分析方法,非常想阅读一下您的文章,但我因积分不足无法阅读原文,在积分商城也未找到获取积分的方法

    0

  3. [GetPortalCommentsPageByObjectIdResponse(id=2213773, encodeId=18162213e73a0, content=支持一下, beContent=null, objectType=article, channel=null, level=null, likeNumber=43, replyNumber=0, topicName=null, topicId=null, topicList=[], attachment=null, authenticateStatus=null, createdAvatar=null, createdBy=cfe21957717, createdName=黑羽盗一, createdTime=Sun Jul 07 21:29:03 CST 2024, time=2024-07-07, status=1, ipAttribution=浙江省), GetPortalCommentsPageByObjectIdResponse(id=927013, encodeId=c36592e013ac, content=老师您好,我在写作论文时需要用到PSM-DID分析方法,非常想阅读一下您的文章,但我因积分不足无法阅读原文,在积分商城也未找到获取积分的方法, beContent=null, objectType=article, channel=null, level=null, likeNumber=95, replyNumber=0, topicName=null, topicId=null, topicList=[], attachment=null, authenticateStatus=null, createdAvatar=null, createdBy=51b85462943, createdName=ms9000000768481009, createdTime=Thu Feb 25 07:32:36 CST 2021, time=2021-02-25, status=1, ipAttribution=), GetPortalCommentsPageByObjectIdResponse(id=1466060, encodeId=de31146606046, content=<a href='/topic/show?id=217c292009' target=_blank style='color:#2F92EE;'>#ATA#</a>, beContent=null, objectType=article, channel=null, level=null, likeNumber=67, replyNumber=0, topicName=null, topicId=null, topicList=[TopicDto(id=2920, encryptionId=217c292009, topicName=ATA)], attachment=null, authenticateStatus=null, createdAvatar=, createdBy=387a6772119, createdName=bbjsj_1981, createdTime=Fri Aug 24 07:14:00 CST 2018, time=2018-08-24, status=1, ipAttribution=), GetPortalCommentsPageByObjectIdResponse(id=1487414, encodeId=df77148e4149a, content=<a href='/topic/show?id=7cea16e605a' target=_blank style='color:#2F92EE;'>#stata#</a>, beContent=null, objectType=article, channel=null, level=null, likeNumber=71, replyNumber=0, topicName=null, topicId=null, topicList=[TopicDto(id=16760, encryptionId=7cea16e605a, topicName=stata)], attachment=null, authenticateStatus=null, createdAvatar=null, createdBy=e76d8309257, createdName=李研东, createdTime=Fri Aug 24 07:14:00 CST 2018, time=2018-08-24, status=1, ipAttribution=)]
    2018-08-24 bbjsj_1981
  4. [GetPortalCommentsPageByObjectIdResponse(id=2213773, encodeId=18162213e73a0, content=支持一下, beContent=null, objectType=article, channel=null, level=null, likeNumber=43, replyNumber=0, topicName=null, topicId=null, topicList=[], attachment=null, authenticateStatus=null, createdAvatar=null, createdBy=cfe21957717, createdName=黑羽盗一, createdTime=Sun Jul 07 21:29:03 CST 2024, time=2024-07-07, status=1, ipAttribution=浙江省), GetPortalCommentsPageByObjectIdResponse(id=927013, encodeId=c36592e013ac, content=老师您好,我在写作论文时需要用到PSM-DID分析方法,非常想阅读一下您的文章,但我因积分不足无法阅读原文,在积分商城也未找到获取积分的方法, beContent=null, objectType=article, channel=null, level=null, likeNumber=95, replyNumber=0, topicName=null, topicId=null, topicList=[], attachment=null, authenticateStatus=null, createdAvatar=null, createdBy=51b85462943, createdName=ms9000000768481009, createdTime=Thu Feb 25 07:32:36 CST 2021, time=2021-02-25, status=1, ipAttribution=), GetPortalCommentsPageByObjectIdResponse(id=1466060, encodeId=de31146606046, content=<a href='/topic/show?id=217c292009' target=_blank style='color:#2F92EE;'>#ATA#</a>, beContent=null, objectType=article, channel=null, level=null, likeNumber=67, replyNumber=0, topicName=null, topicId=null, topicList=[TopicDto(id=2920, encryptionId=217c292009, topicName=ATA)], attachment=null, authenticateStatus=null, createdAvatar=, createdBy=387a6772119, createdName=bbjsj_1981, createdTime=Fri Aug 24 07:14:00 CST 2018, time=2018-08-24, status=1, ipAttribution=), GetPortalCommentsPageByObjectIdResponse(id=1487414, encodeId=df77148e4149a, content=<a href='/topic/show?id=7cea16e605a' target=_blank style='color:#2F92EE;'>#stata#</a>, beContent=null, objectType=article, channel=null, level=null, likeNumber=71, replyNumber=0, topicName=null, topicId=null, topicList=[TopicDto(id=16760, encryptionId=7cea16e605a, topicName=stata)], attachment=null, authenticateStatus=null, createdAvatar=null, createdBy=e76d8309257, createdName=李研东, createdTime=Fri Aug 24 07:14:00 CST 2018, time=2018-08-24, status=1, ipAttribution=)]
    2018-08-24 李研东

相关资讯

如何在SPSS软件中安装PSM模块

如何在SPSS软件中安装PSM模块

PSM步骤及SPSS软件操作

PSM步骤及SPSS软件操作

Baidu
map
Baidu
map
Baidu
map