Compositional Models for Estimating Causal Effects