hi guys!
quick beginner question.
i am estimating earnings and weighting my estimates. i would like to winsorize the earnings distribution - top and bottom 1% set respectively to the value of the 1st and 99th percentile
should i:
a. winsorize the distribution as it it and then perform the regression with weights on?
or
b. winsorize the weighted distribution and then perform the regression with weights on?
thanks,
natalia
quick beginner question.
i am estimating earnings and weighting my estimates. i would like to winsorize the earnings distribution - top and bottom 1% set respectively to the value of the 1st and 99th percentile
should i:
a. winsorize the distribution as it it and then perform the regression with weights on?
Code:
sum wg,de gen wins=wg replace wins=r(p1) if wg<=r(p1) replace wins=r(p99) if wg>=r(p99) svy: regress wins x y z t
b. winsorize the weighted distribution and then perform the regression with weights on?
Code:
svy: mean wg gen wins=wg replace wins=r(p1) if wg<=r(p1) replace wins=r(p99) if wg>=r(p99) svy: regress wins x y z t
natalia
Comment