t-fig" id="fig-drug-mortality-dag-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;24.1: The <code>drug_mortality_sim</code> drawn as a DAG.
</figcaption>
</figure>
</div>
</div>
</div>
<p>Suppose the question of interest is whether the drug improves mortality. A simple design for this study is to sample many people, noting for each person whether they take the <code>drug</code> and whether the person died in the next, say, five years. With the data in hand, we’ll build a model, <code>mortality 