# How can I weigh IPTW weight on data

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?

Thanks!

New contributor
눈웃음짓는붉은여우 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
• 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.
– Noah
Oct 14 at 14:23