Dear statalist,
I have a dataset from a trial where subjects were allocated to either standard of care (SOC) or to experimental treatment (ET). However, some of the subjects (20%) who were randomized to receive ET ended up receiving SOC. This switch was due to a continuous variable x and a binary categorical variable y. The outcome variable is a continuous variable. How do I adjust the treatment effect (ATE, ATET, which needs to be expressed as a mean difference with 95% CI) to arrive at a causal inference? Which would be the best method to choose: ivregress, ivtreatreg, eteffects or etregress? Is there any other better method that I need to look into?