楼主: hiderm
32796 25

[程序分享] 倾向得分匹配法(propensity score matching)的模块: psmatch2、pscore、nnmatch   [推广有奖]

已卖:5228份资源

院士

59%

还不是VIP/贵宾

-

威望
1
论坛币
59515 个
通用积分
4044.5748
学术水平
253 点
热心指数
332 点
信用等级
219 点
经验
76220 点
帖子
2202
精华
1
在线时间
2767 小时
注册时间
2006-6-3
最后登录
2025-9-20

楼主
hiderm 发表于 2013-11-5 09:09:46 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
大家可以参阅印地安那大学的这个网页关于【倾向得分匹配】方法的介绍:
In Stata, how do I perform propensity score matching?

里面推荐了以下三个用户编写的程序:
psmatch2.ado  
pscore.ado  
nnmatch.ado


我在这里粗略翻译一下:
In Stata, how do I perform propensity score matching?
在Stata中,我如何实施倾向得分匹配法?

  Stata does not have a built-in command for propensityscore matching, a non-experimental method of sampling that produces acontrol group whose distribution of covariates is similar to that ofthe treated group. However, there are several user-written modules forthis method. The following modules are among the most popular:
  Stata没有内置的命令来实施倾向得分匹配法,这是一种非实验性抽样方法:它生成一个控制组(对照组),该组的协变量分布类似于诊疗组。不过,有若干用户编写的模块来执行这一方法。下述模块是其中最流行的:
psmatch2.ado
pscore.ado
nnmatch.ado

  psmatch2.ado was developed by Leuven and Sianesi (2003)and pscore.ado by Becker and Ichino (2002). Morerecently, Abadie, Drukker, Herr, and Imbens (2004) introduced nnmatch.ado. All three modules support pair-matching aswell as subclassification.
  【psmatch2.ado】 由Leuven和Sianesi(2003)开发,而【pscore.ado】由Becker和Ichino(2002)开发。较新近地,是Abadie等(2004)引入的【nnmatch.ado】。所有这三个模型都支持配对和子分类。

You can find these modules using the .net command as follows:
你能够使用如下【.net】命令来找到这些模块:

  .net search psmatch2   // 经测试,在Stata12中,只需直接在stata命令窗口中输入 search+模块名称(比如pscore)即可
.net search pscore         // st0026_2 中的模块包应该是较新的,其中包含了pscore.ado
  .net search nnmatch

You can install these modules using the .ssc or.net command, for example:
你可以用【.ssc】或【.net】命令来安装这些模块,比如:

  .ssc install psmatch2, replace
楼主补充:pscore模块是包含在st0026_2 中的,可使用如下命令:
.net install st0026_2.pkg, replace

After installation, read the help files to find the correct usage, forexample:
在安装完成后,阅读帮助文件以找到正确的使用方法,例如:

  .help psmatch2

If you have questions about using statistical and mathematicalsoftware at Indiana University, email UITSResearch Analytics (formerly known as the Stat/MathCenter). Research Analytics is located on the IU Bloomington campus atWoodburn Hall 200, and is open for consultation by appointmentMonday-Friday 9am-5pm. For more, visit ResearchAnalytics on the web, or call 812-855-4724 (IUB) or 317-278-4740(IUPUI).

This is document avll in domain all.
Last modified on August 02, 2013.

还可参见:
【倾向得分匹配法(PSM)举例及stata实现】https://bbs.pinggu.org/thread-1490982-1-1.html

【The Stata Journal Volume 8 Number 4: pp. 532-539】Erratum and discussion of propensity–score reweighting

【The Stata Journal Volume 7 Number 4: pp. 507-541】Causal inference with observational data


补充01:根据二楼坛友的提醒,stata13中已有官方的propensity score matching的命令。
    在网上查了一下,是在stata13的手册[TE] Treatment Effects 中的命令 teffects psmatch
    不过,根据re: st: Propensity Score Matching command in Stata 13
    官方的-psmatch- 命令和用户编写的命令 -psmatch2- 在功能上还是有差别的,简单的说,-psmatch2- 的灵活度要大一些,详细的情形请参看上述链接。


   


二维码

扫码加我 拉你入群

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

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

关键词:propensity psmatch2 matching 倾向得分匹配法 倾向得分匹配 程序 大学 网页 用户 matching

已有 3 人评分经验 论坛币 热心指数 信用等级 收起 理由
fangjames + 1 精彩帖子
np84 + 100 精彩帖子
SpencerMeng + 60 + 20 + 1 奖励积极上传好的资料

总评分: 经验 + 160  论坛币 + 20  热心指数 + 1  信用等级 + 1   查看全部评分

本帖被以下文库推荐

[b][color=Red]提请应助者注意:请不要上传draft或者wp版本,谢谢!因为这些版本我自己用谷歌搜索就可以搜到并免费下载

沙发
dxystata 发表于 2013-11-5 20:51:01
stata13中已有官方的propensity score matching的命令

藤椅
hiderm 发表于 2013-11-6 08:39:48
dxystata 发表于 2013-11-5 20:51
stata13中已有官方的propensity score matching的命令
多谢提醒!期待论坛内有能人早日放出Stata13的pojie版
[b][color=Red]提请应助者注意:请不要上传draft或者wp版本,谢谢!因为这些版本我自己用谷歌搜索就可以搜到并免费下载

板凳
xge2000 发表于 2013-12-5 08:39:29
it is goooooooooooooodd

报纸
yc508 发表于 2013-12-22 22:39:11
谢谢分享

地板
jacky陈2183 在职认证  学生认证  发表于 2013-12-30 00:26:07

7
offandon 发表于 2014-1-27 16:04:25 来自手机
谢谢分享

8
kevinion 发表于 2014-4-21 15:55:53
多谢楼主了!

9
flemynglee 发表于 2014-7-22 14:14:03
谢谢楼主,不过Stata 13 已经有了此命令的官方版本
help teffects psmatch

10
metrischen 发表于 2014-12-9 16:16:51
dxystata 发表于 2013-11-5 20:51
stata13中已有官方的propensity score matching的命令
11也可以用PSM, findit pscore,然后下载ST。就可以安装。
安装完毕后就可以用PSCORE模块,ATT*。
SSC好像不行呢,难道我的版本问题?(11.0).

对于一个回顾性病例对照研究,如果CASE和CONTROL接近1:1,经过PSM是“The balancing property is satisfied ”。
如何进一步研究呢?CONTROL如何选择?请教一下

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-10 05:47