Coherent modeling of longitudinal causal effects on binary outcomes