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
Observational Study
. 2023 Jun 15;42(13):2191-2225.
doi: 10.1002/sim.9718. Epub 2023 Apr 22.

Causal inference in survival analysis using longitudinal observational data: Sequential trials and marginal structural models

Affiliations
Observational Study

Causal inference in survival analysis using longitudinal observational data: Sequential trials and marginal structural models

Ruth H Keogh et al. Stat Med. .

Abstract

Longitudinal observational data on patients can be used to investigate causal effects of time-varying treatments on time-to-event outcomes. Several methods have been developed for estimating such effects by controlling for the time-dependent confounding that typically occurs. The most commonly used is marginal structural models (MSM) estimated using inverse probability of treatment weights (IPTW) (MSM-IPTW). An alternative, the sequential trials approach, is increasingly popular, and involves creating a sequence of "trials" from new time origins and comparing treatment initiators and non-initiators. Individuals are censored when they deviate from their treatment assignment at the start of each "trial" (initiator or noninitiator), which is accounted for using inverse probability of censoring weights. The analysis uses data combined across trials. We show that the sequential trials approach can estimate the parameters of a particular MSM. The causal estimand that we focus on is the marginal risk difference between the sustained treatment strategies of "always treat" vs "never treat." We compare how the sequential trials approach and MSM-IPTW estimate this estimand, and discuss their assumptions and how data are used differently. The performance of the two approaches is compared in a simulation study. The sequential trials approach, which tends to involve less extreme weights than MSM-IPTW, results in greater efficiency for estimating the marginal risk difference at most follow-up times, but this can, in certain scenarios, be reversed at later time points and relies on modelling assumptions. We apply the methods to longitudinal observational data from the UK Cystic Fibrosis Registry to estimate the effect of dornase alfa on survival.

Keywords: cystic fibrosis; inverse probability weighting; marginal structural model; registries; sequential trials; survival; target trials; time-dependent confounding.

PubMed Disclaimer

Figures

FIGURE 1
FIGURE 1
Directed acyclic graph (DAG) illustrating relationships between treatment A, time‐dependent covariates L, discrete time outcome Y, and unmeasured covariates U. Time‐fixed covariates Z are omitted from the diagram but are assumed to potentially affect all other variables.
FIGURE 2
FIGURE 2
Causal tree diagram illustrating a study with a binary treatment At and binary covariate Lt, both measured at two time points (t=0,1). Yt is a discrete time survival outcome. Thick lines indicate branches for groups of individuals who were untreated or treated at both time points.
FIGURE 3
FIGURE 3
Illustration of the sequential trials approach using causal tree diagram from Figure 2. (A) Trial starting at t=0 . (B) Trial starting at t=1. (A) In the trial starting at time t=0 individuals with Y1=0 are censored at time 1 if A1A0. (B) The trial starting at time t=1 is restricted to individuals with A0=0 (and Y1=0).
FIGURE 4
FIGURE 4
Simulation results: mean estimated survival curves obtained using the sequential trials analysis and the MSM‐IPTW analysis. The faded lines show the estimates from each of the 1000 simulated datasets and the thick lines are the point‐wise averages.
FIGURE 5
FIGURE 5
Simulation results: bias in estimation of the risk difference using the sequential trials analysis and the MSM‐IPTW analysis. The black line shows the bias at each time point and the grey area shows the Monte Carlo 95% CI at each time point.
FIGURE 6
FIGURE 6
Simulation results: relative efficiency of the sequential trials analysis compared with the MSM‐IPTW analysis, defined as the inverse of the ratio of the empirical variances of the risk difference estimates at each time.
FIGURE 7
FIGURE 7
Simulation results: Plots of the largest weight (by time period) in each of the 1000 simulated data sets under the sequential trials analysis (IPACW) compared with the inverse probability weighted estimation of marginal structural model analysis. The weights are time‐dependent and change at event visit k=0,,4. We obtained the largest weight in each time period, where in the sequential trials the time refers to time since the start of the trial. In the sequential trials analysis, the IPACW are equal to 1 up to time 1.
FIGURE 8
FIGURE 8
Estimated survival curves under the “always treated” and “never treated” with DNase strategies from the MSM‐IPTW and sequential trials analyses. The shaded areas show the 95% confidence intervals.
FIGURE 9
FIGURE 9
Estimated risk difference (“always treated” vs “never treated” with DNase) from the MSM‐IPTW and sequential trials analyses. The shaded area shows the 95% confidence intervals.

References

    1. Robins J, Hernán M, Brumback B. Marginal structural models and causal inference in epidemiology. Epidemiology. 2000;11:550‐560. - PubMed
    1. Hernán M, Brumback B, Robins J. Marginal structural models to estimate the causal effect of zidovudine on the survival of HIV‐positive men. Epidemiology. 2000;11:561‐569. - PubMed
    1. Clare P, Dobbins T, Mattick R. Causal models adjusting for time‐varying confounding – a systematic review of the literature. Int J Epidemiol. 2019;48:254‐265. - PubMed
    1. Hernán M, Alonso A, Logan R, et al. Observational studies analyzed like randomized experiments: an application to postmenopausal hormone therapy and coronary heart disease. Epidemiology. 2008;19:766‐779. - PMC - PubMed
    1. Gran J, Røysland K, Wolbers M, et al. A sequential Cox approach for estimating the causal effect of treatment in the presence of time‐dependent confounding applied to data from the Swiss HIV cohort study. Stat Med. 2010;29:2757‐2768. - PubMed

Publication types

LinkOut - more resources