假设实验组和对照组是通过 分组虚拟变量 treat (treat=1表示实验组,treat=0表示控制组) 进行划分的,PSM匹配后生成一个名为 _weight 的变量,当_weight为1时,表示的是该个体参与了配对,为空值时表示该个体未参与配对。
剩下的样本就是匹配后的实验组和对照组,可通过treat变量区分。
前提可能是必须使用 1:1不放回匹配。其他匹配方式下_weight可能会出现小数,参见另一个讨论未果的帖子:https://bbs.pinggu.org/thread-6675952-1-1.html
help文档中对于_weight的解释是“_weight. For nearest neighbor matching, it holds the frequency with which the observation is used as a match; with option ties and k-nearest neighbors matching it holds the normalized weight; for kernel matching, and llr matching with a weight other than stata's tricube, it stores the overall weight given to the matched observation. When estimating att only _weight = 1 for the treated.”