Given a binary treatment D, a response Y and covariates X, often X interacts with D in an unknown way to make the treatment effect heterogeneous. If D is exogenous, there are various semi-parametric approaches (matching, inverse probability weighting, etc.) to estimate a weighted average of the...