使用的匹配语句如下:
bootstrap r(att),reps(300):psmatch2 x1 x2 x3 x4 x5 x6, out(y) kernel logit common
*核密度匹配图
//匹配前密度函数图//
twoway (kdensity _pscore if _treated==1,legend( label (1 "treat"))) (kdensity _pscore if _treated==0,legend( label (2 "control"))),xtitle("pscore") title("before matching") scheme (s1mono)
//匹配后密度函数图//
twoway (kdensity _pscore if (_treated==1),legend( label (1 "treat"))) (kdensity _pscore if (_weight!=1 &_weight!=.),legend( label (2 "control"))),xtitle("pscore") title("after matching")scheme (s1mono)


雷达卡





京公网安备 11010802022788号







