Hi All.

I am analyzing data from a trial looking at the impact of treatment on prognosis (i.e. dead or alive). Participants were either receiving usual care or a new treatment; however, some contamination happened and after running an intention to treat analysis, I would like to adjust for the contamination. I know per protocol analyses are not perfect and have come across a paper suggesting using Complier Average Casual Effect analysis where the instrumental variable is the treatment actually received.

In Stata, there is a command called ivregress that can conduct instrumental variable regressions but this seems to require continuous outcomes (and possibly predictors). Is there an equivalent command (or workaround) that can be used when the outcome, predictor and instrumental variables are binary?

Thanks for your help!