楼主: monwen
13315 17

[编程问题求助] 进行PSM后,该用甚么指令将配对成功的样本取出(另存新档) [推广有奖]

  • 1关注
  • 0粉丝

已卖:129份资源

讲师

6%

还不是VIP/贵宾

-

威望
0
论坛币
7806 个
通用积分
146.4313
学术水平
3 点
热心指数
3 点
信用等级
3 点
经验
6509 点
帖子
233
精华
0
在线时间
560 小时
注册时间
2008-4-19
最后登录
2024-12-31

20周年荣誉勋章

楼主
monwen 发表于 2013-1-8 23:20:09 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
最近遇到一个问题,对高手而言可能很简单,对我却难啊。

我已经尽力找过相关问题,可似乎没有找到答案。

我想请问:进行propensity score matching后,我该用甚么指令将配对成功的treatmentcontrol样本取出(另存新档),因为我想把这些样本拿到其他软体(例如mablab)进行其他计量检定

以下是我的指令

logit ipo ta equity debt age

predict pscore, pr

gen pscore2=pscore

psmatch2 ipo, outcome(roa) caliper(0.5) common pscore(pscore2)noreplacement ate

另外,如果是进行nnmatch,是否也用相同方式取出配对成功的treatmentcontrol样本

nnmatch roa ipo ta equity debt age, tc(att) m(4) metric(maha)biasadj(bias) replace  

请高手多多指教,在此先谢过了

二维码

扫码加我 拉你入群

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

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

关键词:PSM replacement propensity treatment placement treatment matching control common

沙发
black~soul 发表于 2013-4-9 17:02:44
您好 想请教您 做出psmatch2这步以后 怎么看那些是匹配上了 那些没有匹配上啊 谢谢您!

藤椅
badboymissing 发表于 2013-4-28 00:29:58
我也遇到了这个问题,高手来啊。。

板凳
ming4733733 在职认证  发表于 2013-5-1 09:59:49
有篇文章中是这样说的
Saved Results
The att* commands save in r():
Scalars
r(nt*) number of treated used in the computation of att*
r(nc*) number of controls used in the computation of att*
r(att*) ATT obtained by att*
r(seatt*) analytical standard error for att*
r(tsatt*) analytical t statistic for att*
r(bseatt*) bootstrapped standard error for att*
r(btsatt*) bootstrapped t statistic for att*
r(mean1) mean outcome of matched treated for attk
r(mean0) mean outcome of matched controls for attk
已有 1 人评分学术水平 热心指数 收起 理由
monwen + 1 + 1 精彩帖子

总评分: 学术水平 + 1  热心指数 + 1   查看全部评分

报纸
wanghao731012 发表于 2014-11-9 15:51:30
请问,你的问题是如何 处理的,我也遇到类似问题,请指教!

地板
metrischen 发表于 2014-12-10 22:22:08
不知道您后来解决了没有,是否可以分享一下。
我是这样处理的:
pscore case age duration, pscore(mypscore) logit level(0.001) numblo(5),得到5个block,然后根据卡钳筛选出符合要求的样本。

7
wangle19910812 发表于 2015-6-5 17:14:51
metrischen 发表于 2014-12-10 22:22
不知道您后来解决了没有,是否可以分享一下。
我是这样处理的:
pscore case age duration, pscore(mypsc ...
您好,不知道您说的卡钳是什么意思呢?我也是需要找出匹配样本

8
gengsha 发表于 2015-9-24 21:07:02
用了一个很笨的方法,先只保留ipo=1的样本。假设使用紧邻匹配10个。只保留psm自动生成的_n1~_n10。然后用reshape命令将这些控制组样本id排成一列,然后和原来的数据merge。保留merge成功的和原来ipo=1的样本。

9
andruw 在职认证  发表于 2015-9-24 23:25:52
  1. keep if e(sample)
复制代码

10
wenwubei659 发表于 2015-12-31 10:54:54
楼主找到解决方法了吗?麻烦告知一二

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

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