Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
Comparative Study
. 2017 Jul 15;186(2):131-142.
doi: 10.1093/aje/kwx091.

A Comparison of Agent-Based Models and the Parametric G-Formula for Causal Inference

Comparative Study

A Comparison of Agent-Based Models and the Parametric G-Formula for Causal Inference

Eleanor J Murray et al. Am J Epidemiol. .

Abstract

Decision-making requires choosing from treatments on the basis of correctly estimated outcome distributions under each treatment. In the absence of randomized trials, 2 possible approaches are the parametric g-formula and agent-based models (ABMs). The g-formula has been used exclusively to estimate effects in the population from which data were collected, whereas ABMs are commonly used to estimate effects in multiple populations, necessitating stronger assumptions. Here, we describe potential biases that arise when ABM assumptions do not hold. To do so, we estimated 12-month mortality risk in simulated populations differing in prevalence of an unknown common cause of mortality and a time-varying confounder. The ABM and g-formula correctly estimated mortality and causal effects when all inputs were from the target population. However, whenever any inputs came from another population, the ABM gave biased estimates of mortality-and often of causal effects even when the true effect was null. In the absence of unmeasured confounding and model misspecification, both methods produce valid causal inferences for a given population when all inputs are from that population. However, ABMs may result in bias when extrapolated to populations that differ on the distribution of unmeasured outcome determinants, even when the causal network linking variables is identical.

Keywords: Monte Carlo methods; agent-based models; causal inference; decision analysis; individual-level models; mathematical models; medical decision making; parametric g-formula.

PubMed Disclaimer

Figures

Figure 1.
Figure 1.
Simplified decision process for the use of treatment among HIV-positive individuals at each month k. Square black nodes represent decision points where intervention is possible, white circles represent nodes where an individual's path depends on the conditional probability distribution specified, and triangles represent terminal nodes.
Figure 2.
Figure 2.
Causal directed acyclic graph depicting 2 arbitrary time points from a setting with a time-varying treatment A that has no causal effect on the outcome Y. Conventional adjustment for the confounder L by regression or stratification is expected to introduce bias, because L is affected by prior treatment and shares a cause (U) with the outcome.

Comment in

Similar articles

Cited by

References

    1. Sonnenberg FA, Beck JR. Markov models in medical decision making: a practical guide. Med Decis Making. 1993;13(4):322–338. - PubMed
    1. Beck JR, Pauker SG. The Markov process in medical prognosis. Med Decis Making. 1983;3(4):419–458. - PubMed
    1. Robins JM, Hernán MA. Estimation of the causal effects of time-varying exposures In: Fitzmaurice G, Davidian M, Verbeke G, et al., eds. Longitudinal Data Analysis. New York, NY: Chapman and Hall/CRC Press; 2008:553–599.
    1. Robins J. A new approach to causal inference in mortality studies with sustained exposure periods—application to control of the healthy worker survivor effect [published erratum appears in Comput Math Appl 1987;14(9–12):917–921]. Math Model. 1986;7(9–12):1393–1512.
    1. Siebert U, Alagoz O, Bayoumi AM, et al. . State-transition modeling: a report of the ISPOR-SMDM Modeling Good Research Practices Task Force-3. Med Decis Making. 2012;32(5):690–700. - PubMed

Publication types