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
Analysis of Demographic Factors Across SyllabiHi all! I'm very new to Stata so apologies in advance if my question isn't very well formed. I am p…
Controlling for year when appending two datasetsHello, One newbie question but I'm stuck on this basic task. I'm pooling two datasets from two diff…
Reverse Causality and Panel DataHi all, I hope all is well. Please, I am studying if some of the variables affect firm instrument is…
Quantile regression (QR) for panel dataDear all, i hope you are doing good i'm trying to work on a non linear relationship. does quantile…
Table1_mc stata 16 issueHello, I am trying to create a table 1 in stata 16. I am using the following code: table1_mc, by(r…
Subscribe to:
Post Comments (Atom)
0 Response to Inverse Probability Weighing for Multiple Treatments
Post a Comment