how to calculate manually propensity score weights for multinomial treatments where one of them is baseline

From the above question, I wonder how I can modify the original data with weight from IPTW.

With the link, I want to weigh on 'df' with IPTW weight called 'w' in there.

And then I want to compare the mean of 'demo1' variable( before versus after).

Is it possible?


New contributor
눈웃음짓는붉은여우 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • $\begingroup$ IPTW doesn't modify the original data, like matching does. Any procedure done with IPTW needs to include the weights. To compare covariate means before and after weighting, use the bal.tab() function mentioned in the post. $\endgroup$
    – Noah
    Oct 14 at 14:23

Your Answer

눈웃음짓는붉은여우 is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.