具体程序及说明如下:
- use data.dta //调用数据,如附件所示
- ebalance treat age educ black re74 re75, tar(2) //对数据进行熵复权,生成的权重数据会存储在变量_webal中
- svyset [pweight= _webal] //svyset -- Declare survey design for dataset,并 赋权
- svy: reg re78 treat // svy estimation -- Estimation commands for survey data
- treat_=treat* _webal
- age_=age* _webal
- educ_=educ * _webal
- black_=black * _webal
- re74_=re74 * _webal
- re75_=re75* _webal


雷达卡



京公网安备 11010802022788号







