Error Running IPW Code in R

Hi, looking at the error, it might be that there are NA values in the dependent variable.

In general, you should provide reproducible code, rather than a screenshot.