全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
16078 7
2013-04-28
请教高手,我在stata里边使用了attnd和psmatch2两种方法进行倾向得分匹配法,但是处理组和对照组样本都不是相等的。
1、怎么实现处理组和对照组样本相等的方法,需要什么具体的命令?
2、如果进行了一对一的匹配,怎么对匹配过的样本进行标记输出?
多谢了。
二维码

扫码加我 拉你入群

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

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

全部回复
2013-4-28 11:49:25
The surveyselect procedure can achieve your goal. Please tale a look the stratified sampling method.

Syntax: SURVEYSELECT Procedure

The following statements are available in PROC SURVEYSELECT:

PROC SURVEYSELECT options ;
STRATA variables </ options> ;
SAMPLINGUNIT | CLUSTER variables </ options> ;
CONTROL variables ;
SIZE variable ;
ID variables ;
The PROC SURVEYSELECT statement invokes the procedure and optionally identifies input and output data sets. It also specifies the selection method, the sample size, and other sample design parameters. The PROC SURVEYSELECT statement is required.

The SIZE statement identifies the variable that contains the size measures of the sampling units. This statement is required for any probability proportional to size (PPS) selection method unless you specify the PPS option in the SAMPLINGUNIT statement.

The remaining statements are optional. The STRATA statement identifies a variable or set of variables that stratify the input data set. When you specify a STRATA statement, PROC SURVEYSELECT selects samples independently from the strata that are formed by the STRATA variables. The STRATA statement also provides options to allocate the total sample size among the strata.

The SAMPLINGUNIT statement identifies a variable or set of variables that group the input data set observations into sampling units (clusters). Sampling units are nested within strata. When you specify a SAMPLINGUNIT statement, PROC SURVEYSELECT selects clusters instead of individual observations.

The CONTROL statement identifies variables for ordering units within strata. It can be used for systematic and sequential sampling methods. The ID statement identifies variables to copy from the input data set to the output data set of selected units.

The rest of this section gives detailed syntax information about the CONTROL, ID, SAMPLINGUNIT, SIZE, and STRATA statements in alphabetical order after the description of the PROC SURVEYSELECT statement.

二维码

扫码加我 拉你入群

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

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

2014-8-2 23:10:01
楼上的太高端了,理解能力有限。。。
研究了下help文件,使用psmatch2的时候option里面加一个noreplacement即可,但是有一定的限制,你可以help psmatch2看一下。
二维码

扫码加我 拉你入群

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

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

2015-2-27 20:54:05
忧忧LJ 发表于 2014-8-2 23:10
楼上的太高端了,理解能力有限。。。
研究了下help文件,使用psmatch2的时候option里面加一个noreplacemen ...
最近做一对一匹配也遇到了问题,请教大神帮忙。谢谢!
二维码

扫码加我 拉你入群

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

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

2015-2-27 20:54:42
忧忧LJ 发表于 2014-8-2 23:10
楼上的太高端了,理解能力有限。。。
研究了下help文件,使用psmatch2的时候option里面加一个noreplacemen ...
最近做一对一匹配也遇到了问题,请教大神帮忙。谢谢!
二维码

扫码加我 拉你入群

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

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

2017-4-19 16:34:45
xingyuehuang 发表于 2015-2-27 20:54
最近做一对一匹配也遇到了问题,请教大神帮忙。谢谢!
请问,你的问题解决了吗,能否请教一下
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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