Hi all,
I am trying to compute inverse probability weight for multiple treatments. But I am struggling to do so.
The common way to generate ipw for binary treatments is as follows.
* Estimate the propensity score
qui logit treatment x1 x2 x3, nolog
predict double pscore if e(sample)
* Create IP weight
gen ipw = 1/pscore if treatment == 1
replace ipw = 1/(1-pscore) if treatment ==0
But I’m trying to compute inverse probability weighting for multiple treatment groups. My treatment values are 0, 1, 2, 3.
I have obtained propensity score (pscore) for each group. Does anyone know how to compute “ipw” for each treatment group, please?
Thank you so much for your time.
Related Posts with Inverse Probability Weighing for Multiple Treatments
Again...egenHi statlist, as Prof suggested me I am reading the even pdf command but I am still quite confused. …
fractional polynomial vs multivariable fractional polynomialHello, I am a little confused between the two concepts listed in the subject line. FP in stata can …
Collapse a variable for every percentileHi, I have a dataset of wages at the individual level. I want to collapse this dataset at every per…
Convert high frequency data to lower frequencyHi! I have a dataset with minute data (stock price) which I would like to convert into 30min data in…
Cleaning Raw Data--How to edit non-numeric data records using commandsHello! I'm sure this has been addressed before, but I have been unable to find a forum post or yout…
Subscribe to:
Post Comments (Atom)
0 Response to Inverse Probability Weighing for Multiple Treatments
Post a Comment