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
. 2020 Sep 5;30(9):377-389.
doi: 10.2188/jea.JE20200226. Epub 2020 Jul 18.

Understanding Marginal Structural Models for Time-Varying Exposures: Pitfalls and Tips

Affiliations

Understanding Marginal Structural Models for Time-Varying Exposures: Pitfalls and Tips

Tomohiro Shinozaki et al. J Epidemiol. .

Abstract

Epidemiologists are increasingly encountering complex longitudinal data, in which exposures and their confounders vary during follow-up. When a prior exposure affects the confounders of the subsequent exposures, estimating the effects of the time-varying exposures requires special statistical techniques, possibly with structural (ie, counterfactual) models for targeted effects, even if all confounders are accurately measured. Among the methods used to estimate such effects, which can be cast as a marginal structural model in a straightforward way, one popular approach is inverse probability weighting. Despite the seemingly intuitive theory and easy-to-implement software, misunderstandings (or "pitfalls") remain. For example, one may mistakenly equate marginal structural models with inverse probability weighting, failing to distinguish a marginal structural model encoding the causal parameters of interest from a nuisance model for exposure probability, and thereby failing to separate the problems of variable selection and model specification for these distinct models. Assuming the causal parameters of interest are identified given the study design and measurements, we provide a step-by-step illustration of generalized computation of standardization (called the g-formula) and inverse probability weighting, as well as the specification of marginal structural models, particularly for time-varying exposures. We use a novel hypothetical example, which allows us access to typically hidden potential outcomes. This illustration provides steppingstones (or "tips") to understand more concretely the estimation of the effects of complex time-varying exposures.

Keywords: causal inference; g-formula; inverse probability weighting; marginal structural model; time-varying exposure.

PubMed Disclaimer

Figures

Figure 1.
Figure 1.. Causal DAGs and SWIGs compatible with example data, where U and W are unobserved variables: (a) causal DAG without W, in which A1L2, A1Y, and A2Y are (conditionally) unconfounded given observed data; (b) causal DAG with W, in which A1Y and A2Y are (conditionally) unconfounded but A1L2 is confounded given observed data; (c) a “template” under intervention (a1, a2) of SWIG that corresponds to causal DAG (a); (d) a “template” under intervention (a1, a2) of SWIG that corresponds to causal DAG (b).
Appendix Figure 1.
Appendix Figure 1.. Causal DAGs and SWIGs for dynamic regimes and without identifiability conditions: (a) causal DAG identical to Figure 1(b); (b) causal DAG with the arrow from L2 on Y, in which L2 is affected by A1, and the A1L2 association is confounded by unobserved W; (c) a “template” under intervention g = (g1, g2) = (g1(L1), g2(L1, A1, L2)) of SWIG that corresponds to causal DAG (a); (d) a “template” under intervention (a1, a2) of SWIG that corresponds to causal DAG (b).

References

    1. Greenland S, Robins JM. Identifiability, exchangeability, and epidemiological confounding. Int J Epidemiol. 1986;15:413–419. 10.1093/ije/15.3.413 - DOI - PubMed
    1. Greenland S, Pearl J, Robins JM. Causal diagrams for epidemiologic research. Epidemiology. 1999;10:37–48. 10.1097/00001648-199901000-00008 - DOI - PubMed
    1. Greenland S, Brumback B. An overview of relations among causal modelling methods. Int J Epidemiol. 2002;31:1030–1037. 10.1093/ije/31.5.1030 - DOI - PubMed
    1. Rothman KJ, Greenland S, Lash TL, eds. Modern Epidemiology, 3rd ed. Philadelphia, PA: Lippincott Williams and Wilkins; 2008.
    1. Greenland S. For and against methodologies: some perspectives on recent causal and statistical inference debates. Eur J Epidemiol. 2017;32:3–20. 10.1007/s10654-017-0230-6 - DOI - PubMed