I intend to manually calculate inverse probability weights (IPW) in order to use them in a regression with a 3-value treatment, a binary dependent variable and a variable (let us call it 'indvar') I wish to test the effect of after having ascertained the effect of treatment. the command
Code:
teffects ipw
Code:
mlogit
So I have calculated the inverse probability weights as follows:
Code:
mlogit treatment covariates predict pscore, pr replace pscore=1/(1-pscore) if treatment==0 replace pscore=1/pscore if treatment==1 | treatment==2 logit depvar i.treatment indvar [pw=pscore]
Thank you very much for your useful comments,
Best,
0 Response to Weighting data with IPW and mlogit
Post a Comment