RT Journal Article SR Electronic T1 Using compartmental models to simulate directed acyclic graphs to explore competing causal mechanisms underlying epidemiological study data JF medRxiv FD Cold Spring Harbor Laboratory Press SP 19007922 DO 10.1101/19007922 A1 Joshua Havumaki A1 Marisa C. Eisenberg YR 2020 UL http://medrxiv.org/content/early/2020/05/28/19007922.abstract AB Accurately estimating the effect of an exposure on an outcome requires understanding how variables relevant to a study question are causally related to each other. Directed acyclic graphs (DAGs) are used in epidemiology to understand causal processes and determine appropriate statistical approaches to obtain unbiased measures of effect. Compartmental models (CMs) are also used to represent different causal mechanisms, by depicting flows between disease states on the population level. In this paper, we extend a mapping between DAGs and CMs to show how DAG–derived CMs can be used to compare competing causal mechanisms by simulating epidemiological studies and conducting statistical analyses on the simulated data. Through this framework, we can evaluate how robust simulated epidemiological study results are to different biases in study design and underlying causal mechanisms. As a case study, we simulated a longitudinal cohort study to examine the obesity paradox: the apparent protective effect of obesity on mortality among diabetic ever-smokers, but not among diabetic never-smokers. Our simulations illustrate how study design bias (e.g., reverse causation), can lead to the obesity paradox. Ultimately, we show the utility of transforming DAGs into in silico laboratories within which researchers can systematically evaluate bias, and inform analyses and study design.Competing Interest StatementThe authors have declared no competing interest.Funding StatementThis study was funded by National Institute of General Medical Sciences Grant U01GM110712.Author DeclarationsAll relevant ethical guidelines have been followed and any necessary IRB and/or ethics committee approvals have been obtained.Not ApplicableAll necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived.Not ApplicableAny clinical trials involved have been registered with an ICMJE-approved registry such as ClinicalTrials.gov and the trial ID is included in the manuscript.Not ApplicableI have followed all appropriate research reporting guidelines and uploaded the relevant Equator, ICMJE or other checklist(s) as supplementary files, if applicable.Not ApplicableThe datasets and code used for the current study are available from the corresponding author on reasonable request. Example code used for the analysis is available on GitHub. https://github.com/epimath/cm-dag