 Research
 Open access
 Published:
Instrumental variable estimation for a timevarying treatment and a timetoevent outcome via structural nested cumulative failure time models
BMC Medical Research Methodology volume 21, Article number: 258 (2021)
Abstract
Background
In many applications of instrumental variable (IV) methods, the treatments of interest are intrinsically timevarying and outcomes of interest are failure time outcomes. A common example is Mendelian randomization (MR), which uses genetic variants as proposed IVs. In this article, we present a novel application of gestimation of structural nested cumulative failure models (SNCFTMs), which can accommodate multiple measures of a timevarying treatment when modelling a failure time outcome in an IV analysis.
Methods
A SNCFTM models the ratio of two conditional mean counterfactual outcomes at time k under two treatment strategies which differ only at an earlier time m. These models can be extended to accommodate inverse probability of censoring weights, and can be applied to casecontrol data. We also describe how the gestimates of the SNCFTM parameters can be used to calculate marginal cumulative risks under nondynamic treatment strategies. We examine the performance of this method using simulated data, and present an application of these models by conducting an MR study of alcohol intake and endometrial cancer using longitudinal observational data from the Nurses’ Health Study.
Results
Our simulations found that estimates from SNCFTMs which used an IV approach were similar to those obtained from SNCFTMs which adjusted for confounders, and similar to those obtained from the gformula approach when the outcome was rare. In our data application, the cumulative risk of endometrial cancer from age 45 to age 72 under the “never drink” strategy (4.0%) was similar to that under the “always ½ drink per day” strategy (4.3%).
Conclusions
SNCFTMs can be used to conduct MR and other IV analyses with timevarying treatments and failure time outcomes.
Introduction
Instrumental variables (IVs) provide an approach to consistently estimate an average causal effect of a treatment on an outcome, even in the presence of unmeasured confounding. In many randomized trial designs, IV methods allow one to estimate the perprotocol effect by using randomization assignment as an IV [1]. In observational studies, an increasingly popular application of IVs is Mendelian randomization (MR), in which genetic variants are used as proposed IVs [2, 3]. In many IV studies, including those which use MR, the treatments of interest (e.g. blood lipids, smoking, alcohol intake) are intrinsically timevarying and many outcomes of interest are failure time outcomes. However, conventional IV methods were designed to handle timefixed treatments and IV methods for failure time outcomes are less commonly used in practice [4]. Thus, there is a mismatch between the goal of these studies and the availability of IV methods.
We have previously described extensions of IV methods based on gestimation of structural mean models to incorporate timevarying treatments in MR analyses [5]. Others have described structural nested accelerated failure time [6] and structural nested cumulative survival [7,8,9] models to incorporate failure time outcomes in an IV analysis with timevarying treatments. However, unlike our approach, parameter estimation in structural nested accelerated failure time models requires artificial censoring (which is statistically inefficient and makes estimation numerically difficult because estimating equations are not differentiable), and structural nested cumulative survival models only compare static treatment [9].
Structural nested cumulative failure time models (SNCFTMs) overcome both of these limitations [10]. SNCFTMs have been previously discussed as a method of estimating the causal effect of a timevarying treatment on a failure time outcome under the sequential exchangeability assumption that all timevarying confounders have been measured and that failure is rare under all possible treatment values [10]. Here we describe an adaptation of this use of SNCFTMs that, under the same rare failure assumption, replaces the sequential exchangeability assumption with IVtype assumptions. We first introduce notation and describe SNCFTMs when estimating the parameters using an IV. Next, we examine the performance of the proposed method in simulation studies. Then, we present an MR study estimating the effect of alcohol intake on endometrial cancer risk based on data from the Nurses’ Health Study I.
Methods
Notation and identifying assumptions
Let k = 0, 1, 2, …, K + 1 denote a time interval where k = 0 denotes start of followup. For each individual, let Z represent the value of a timefixed instrument (e.g., germline genetic variants in MR studies), A_{k} the treatment value during interval k, and Y_{k} an indicator (1: yes, 0: no) for the outcome before start of interval k = 1, 2, …, K + 1. We use an overbar to represent history from time 0, that is \({\overline{A}}_k=\left({A}_0,{A}_1,\dots, {A}_k\right)\), and an underbar to represent treatment up to the end of the study, that is \({\underline A}_k=\left(A_k,A_{k+1},\dots,A_K\right)\).
A static treatment strategy g is defined as \(g\equiv {\overline{g}}_K\equiv \left({a}_0,{a}_1,\dots, {a}_K\right)\) where treatment a_{k} is assigned to each individual at time k. For example, for a dichotomous treatment, the strategy “never treat” is represented by \(g=\overline{0}\) and the strategy “always treat” is represented by \(g=\overline{1}\). In failure time settings, the strategy “always treat” is more precisely specified as “always treat before failure” and thus can be viewed as a dynamic strategy \(g\equiv {\overline{g}}_K\equiv \left({g}_0,{g}_1,\dots, {g}_K\right)\), where g_{k} = 1 when Y_{k − 1} = 0 and g_{k} = 0 otherwise. In this paper, we will also consider the strategy “receive the treatment actually received through k but no treatment thereafter”, which is represented by \(g=\left({\overline A}_k,\underline0\right)\).
Let \({Y}_k^g\) represent the counterfactual outcome at time k had they followed the treatment strategy g. By consistency, the counterfactual outcome \({Y}_k^g\) is equal to the observed outcome Y_{k} among individuals whose observed treatment history is equal to that specified by g between times 0 and k − 1.
The instrumental variable Z is defined by meeting the three instrumental conditions: (1) the instrument and the treatment are associated, or \(Z\;\coprod\;A_k\) does not hold for any k (a stronger version is often needed for estimation, e.g., for linear models, the Z and A_{k} need to be correlated); (2) the instrument affects the outcome only through the treatment, or \({Y}_{i,k}^{z,g}={Y}_{i,k}^{\mathrm{z}\prime, g}={Y}_{i,k}^g\) for all individuals i, k, z, z′, g; and (3) there are no shared causes, or other sources of lack of exchangeability, between the instrument and the outcome, or \(Z\;\coprod Y_k^{z,g}\) for all z, k, g. The last two conditions, taken together, imply exchangeability between the instrument and the counterfactual outcome under a given treatment strategy, \(Z\;\coprod\;Y_k^g\).
The three instrumental conditions alone are generally insufficient to obtain a point estimate. To do so, we can make a fourth assumption of homogeneity. One version of this assumption asserts that the instrument Z does not modify the effect of the treatment A_{k} on the outcome Y_{k + 1} on the multiplicative scale. As we describe below, this assumption precludes us from including a product term between the instrument and the treatment in the model.
Gestimation of structural nested cumulative failure time models with an instrumental variable
Let \(\mathrm E\left[Y_k^g\right]\) represent the counterfactual risk of developing the outcome by time k had everyone followed the treatment strategy g. SNCFTMs compare the counterfactual risks at k under the strategies \(\left({\overline A}_m,\underline0\right)\) and \(\left({\overline A}_{m1},\underline0\right)\), for each time m < k, among individuals who are free of the outcome through m (i.e., Y_{m} = 0) and had treatment history \({\overline{A}}_m\) and the same covariate history through m. When adjusting for confounders, “covariate history” means confounder history [10]; when using instrumental variable estimation, “covariate history” means the instrument Z. “Covariate history” may additionally include instrumentoutcome confounders or effect modifiers to allow for a weaker variation of the instrumental conditions or the homogeneity assumption—a point we will describe further in the discussion.
Specifically, an SNCFTM models the ratio of two counterfactual cumulative risks at time k under treatment strategies that differ only at time m for each time m < k:
where \({\gamma}_k\left({\overline{A}}_m,Z;\psi \right)\) is a function of the treatment history through m and the instrument, indexed by the parameter ψ. That is, the SNCFTM models the conditional effect of a “blip” of treatment at time m on outcome at time k. Hence, \({\gamma}_k\left({\overline{A}}_m,Z;\psi \right)\) is also referred to as a “blip function”. This model is semiparametric as it allows for the counterfactual cumulative risks to remain unspecified; however, under a nonsaturated SNCFTM, the choice of the blip function will impose restrictions on the assumed distribution of the data. For example, the simple blip function
assumes the effect of treatment at time m on outcome at time k to be constant for all m < k and across levels of the instrument Z. Note that SNCFTMs with an instrument are necessarily nonsaturated because the fourth condition of homogeneity (i.e., the effect of A_{m} on Y_{k} is constant across levels of Z among both the treated and the untreated) implies the absence of product terms between the instrument Z and the treatment A_{m} [11]. Therefore, for our IV analysis, the blip function cannot depend on the instrument Z, or \({\gamma}_k\left({\overline{A}}_m,Z;\psi \right)={\gamma}_k\left({\overline{A}}_m;\psi \right)\). The blip function should be chosen such that \(\exp \left[{\gamma}_k\left({\overline{A}}_m;0\right)\right]=1\) when treatment at time m has no effect on outcome at time k [10]. For our analyses, we use
in which ψ = 0 corresponds to no effect, ψ < 0 to protective effect, ψ > 0 to harmful effect, and allows for the effect of A_{m} to diminish as time since m increases. The choice of blip function should be based on a priori subject matter knowledge, although one could also consider fitting models under a suite of possible blip functions as a sensitivity analysis to assess how that affects one’s conclusions. Other choices of blip functions have been previously described [10].
The interpretation of the parameter ψ depends on the choice of blip function [10]. Under certain conditions, as described in the next section, the parameter ψ can be mapped into the counterfactual risks under treatment strategies of interest, which have a natural interpretation for causal inference. In the remainder of this section, we describe gestimation of ψ. In the next section, we describe how to use the estimate to compute the risks under the strategies of interest.
Gestimation has been previously described under the assumption of no unmeasured treatmentoutcome confounders [10]. For IV estimation, the estimating function is [10, 11]:
where H_{m, k}(ψ^{†}) is defined as
We use ψ^{†} to denote candidate values of the true value ψ where \(\mathrm E\left[H_{m,k}\left(\psi^\dagger\right)\vert{\overline A}_m,Z\right]\) is equal to the mean counterfactual outcome, \(\mathrm E\left[Y_k^{\left({\overline A}_{m1},\underline0\right)}\vert{\overline A}_m,Z\right]\), when ψ^{†} is equal to ψ.
Under the IV assumptions, the value ψ^{†} that solves E[U(ψ^{†}; Z)] = 0 is our gestimate [11]. The equation can be numerically solved, as previously described, using the NewtonRaphson procedure [10]. The 95% confidence interval for \(\hat{\psi}\) can be obtained by bootstrapping. Selection bias due to censoring during followup can be addressed by inverse probability weighting, as has been previously described [10].
Computing marginal risks under two treatment strategies
The parameter ψ of the SNCFTM can be used to calculate the counterfactual risks under a given treatment strategy [10]. The risk \(\mathrm {E}\left[{Y}_k^{\overline{0}}\right]\) under the “never treat” strategy \(\overline{0}\) is obtained by “removing” the effect of an individual’s nonzero treatment at each time period k from the end of the study period (k = K + 1) to the beginning (k = 0). This calculation, referred to as “blipping down” procedure, is carried out using the formula that is a function of the observed data when \({\gamma}_k\left({\overline{A}}_m;\psi \right)\) is known
The risk \(\mathrm{E}\left[{Y}_k^g\right]\) under the “always treat” treatment strategy g is obtained by “adding” the effect of treatment to \(\mathrm {E}\left[{Y}_k^{\overline{0}}\right]\) from the beginning of the study period (k = 0) to the end of the study period (K + 1). Assuming no effect measure modification of the treatment by timevarying covariates on the multiplicative scale, we can estimate this quantity using only \(\mathrm {E}\left[{Y}_k^{\overline{0}}\right]\) and \({\gamma}_k\left({\overline{A}}_m;\psi \right)\). Under this assumption, this calculation, referred to as “blipping up”, is carried out using the formula
where \({t}_{\overline{a}}\left(k,j,i\right)\) for i = − 1, 0, 1, …k − 2 are recursively defined as:
with j ≤ s and \({e}_{\overline{a}}\left(p,m\right)=\exp \left[{\gamma}_p\left({\overline{a}}_m;\psi \right)\right]\). These recursive definitions of \({t}_{\overline{a}}\left(k,j,i\right)\) weight the probability of developing the outcome at each time j < k by the cumulative probability of survival through j − 1. In the presence of effect measurement modification by timevarying covariates, estimation of nuisance functions, in addition to \(\mathrm{E}\left[{Y}_k^{\overline{0}}\right]\) and \({\gamma}_k\left({\overline{A}}_m;\psi \right)\), are required for the calculation of \(\mathrm{E}\left[{Y}_k^g\right]\)[10].
Analysis of casecontrol data using SNCFTMs
In some cases, data on treatment and outcome are available for all individuals in the study cohort, but the proposed instrument, such as a given genetic variant, is difficult or expensive to measure in the full cohort. One solution is to limit the measurement of the instrument to cases (individuals who develop the outcome during the followup) and incidencedensity sampled controls.
Casecontrol sampling allows us to consistently estimate the parameter ψ of the SNCFTM and the marginal risks under static treatment strategies. To see why, note that only the cases contribute to the sum in the estimating equation because H_{m, k}(ψ^{†}) is equal to 0 for all m and k among individuals who remain free of the outcome over followup. Therefore, if all cases or a random sample of the cases are included in the casecontrol sample, then the gestimate \(\hat{\psi}\) remains unbiased as long as E[Z Y_{m} = 0] is correctly estimated in the full cohort or in randomly selected controls that are representative of the underlying atrisk population that gave rise to the cases. As such, the casecontrol sample is sufficient to estimate ψ, even when sampling fractions are unknown.
Once the gestimate \(\hat{\psi}\) is obtained, the marginal counterfactual risks under static treatment strategies can be estimates as described in the previous section. This is the case because the blip function cannot be a function of the instrument under the homogeneity assumption, and the data on treatment and outcome is available for the full cohort.
Simulation study
We simulated datasets of 25,000 individuals compatible with the three scenarios shown in Fig. 1: (i) a timefixed treatment A_{0}, a timefixed outcome Y_{1} and a timefixed confounder L_{0}, (ii) a timefixed treatment A_{0}, a timevarying outcome Y_{1}, Y_{2} (where Y_{k} is an indicator for having developed the event by time k) and a timefixed confounder L_{0}, and (iii) a timevarying treatment A_{0}, A_{1}, a timevarying outcome Y_{1}, Y_{2} and a timevarying confounder L_{0}, L_{1}. In all settings, there was a causal instrument Z. For simplicity, we assume no loss to followup and considered all variables as binary. We used the following datagenerating model:
\(\Pr \left({Y}_{k+1}=1{A}_k,{L}_k,{Y}_k=0\right)=\mathrm{expit}\left(\log \left(\frac{\lambda }{1\lambda}\right)+{\alpha}_{AY}{A}_k+0.5{L}_k\right)\) for scenarios (i) and (iii).
\(\Pr \left({Y}_{k+1}=1{A}_0,{L}_0,{Y}_k=0\right)=\mathrm{expit}\left(\log \left(\frac{\lambda }{1\lambda}\right)+{\alpha}_{AY}{A}_0+0.5{L}_0\right)\) for scenario (ii).
where α_{ZA} = 0.25, α_{AY} = 0 when data was generated under the null and α_{AY} = 0.5 otherwise; and baseline constant hazards (λ) took on values of 5, 10 and 25%. Additional simulations were conducted with datasets of 10,000 or 50,000 individuals, and with varying strengths of association between the instrument and the exposure (α_{ZA} = 0.10 and α_{ZA} = 0.45) (Supplementary Fig. 1). Also, to create a casecontrol study, we selected all individuals who developed the outcome as cases and randomly sampled two controls per case.
We fit a SNCFTM defined by the blip function \(\exp \left[{\gamma}_k\left({\overline{A}}_m;\psi \right)\right]=1+\frac{\exp \left(\psi {A}_m\right)1}{km}\) and gestimated the parameters of the model using three approaches:

1.
Adjusting for confounder L

2.
Using the instrumental variable Z

3.
Neither adjusting for confounder L nor using the instrumental variable Z
We calculated differences and ratios in marginal risks under the “never treat” strategy and the “always treat” strategy by using the \(\hat{\psi}\) estimates from each SNCFTM and by applying the gformula, a generalization of standardization to timevarying treatments and confounders. When the data were simulated under the null, 0 was the true ψ parameter. When the data were simulated not under the null, we considered the mean \(\hat{\psi}\) value obtained by adjusting for confounder L as the true value of the parameter ψ.
Distributions of \(\hat{\psi}\) estimates across simulated iterations with λ = 5% are given in Fig. 2 and Table 1. Compared with the mean \(\hat{\psi}\) estimates from SNCFTMs which adjusted for confounder L, the mean \(\hat{\psi}\) estimates from SNCFTMs which used an IV approach were similar. The variance of the IV estimates was larger than that of the confoundingadjusted estimates. There was additional loss in efficiency when IV was applied to data from a casecontrol design compared to a full cohort due to increased variability in estimating E[Z Y_{m} = 0]. As expected, \(\hat{\psi}\) estimates were very biased when we neither appropriately adjusted for confounding nor used an IV, with the bias ranging between 0.23 to 0.27. Estimates for marginal risk differences and risk ratios were similar between the SNCFTM approach and the gformula approach (Supplementary Fig. 2AB). As the baseline hazard increased, the SNCFTM approach resulted in an overestimate of the risk differences and the risk ratios compared to using the gformula (Supplementary Fig. 3AB).
Application: the effect of alcohol intake on endometrial cancer
Alcohol intake may increase endometrial cancer risk by increasing estrogen levels or may decrease endometrial cancer risk by improving insulin sensitivity and reducing fasting insulin concentrations [12, 13]. To estimate this effect, we emulated a target trial of alcohol intake interventions among middleage women using observational data from the Nurses’ Health Study (NHS), a prospective study of female registered nurses [14]. Below we summarize the protocol of the target trial and describe how to emulate each of its components using the NHS observational data.
Target trial specification
The eligibility criteria for the women in the target trial would be 45–48 years of age, no history of cancer (except for nonmelanoma skin cancer), no history of alcoholism, and an intact uterus. The two (static) strategies to be compared would be (1) “never drink”, or (2) “always ½ drink per day, unless an absolute contraindication for moderate alcohol consumption arises”. We considered a standard drink to contain 14 g of ethanol [15]. Eligible women would be randomly assigned to one of the strategies and would be aware of the strategy they were assigned to. The outcome of interest would be incident endometrial cancer. Each woman would be followed from assignment (baseline) until the development of endometrial cancer, incompletefollowup, or 28 years after baseline, whichever occurs first. We defined incomplete followup as nonresponse to alcohol intakerelated questions.
The causal contrasts of interest would be the intentiontotreat effect—that is, the effect of being assigned a strategy, regardless of whether women adhere to it—and the perprotocol effect—that is, the effect that would have been observed had all women adhered to their assigned strategy over the 28year followup.
To estimate the intentiontotreat effect, we would conduct an intentiontotreat analysis that compares the 28year risk (cumulative incidence) between the group assigned to each strategy. In the presence of incomplete followup, inverse probability weights (a function of baseline and timevarying prognostic factors) would be used to adjust for potential selection bias [11].
To estimate the perprotocol effect, one option is to conduct a perprotocol analysis that appropriately adjusts for baseline and timevarying prognostic factors that also predict adherence. In the absence of sufficient information on these factors, we could conduct a perprotocol analysis based on IV estimation, with the dichotomous randomization indicator as the proposed instrument. IV conditions (1) and (3) would be expected to hold by design, but we would need to assume that condition (2) holds. That is, we would need to assume that being aware of their treatment assignment did not affect participants’ behavior in ways that may affect the outcome. We would also need to assume a structural model on how different degrees of adherence—over time and in magnitude of alcohol intake—relate to the outcome. For example, we could use the SNCFTM described above to estimate the 28risk risk of endometrial cancer in the study population under full adherence to each strategy.
Note that the perprotocol effect involves the dynamic strategy “always ½ drink per day, unless an absolute contraindication for moderate alcohol consumption arises” whereas our SNCFTM can only be used to compare static strategies such as “always ½ drink per day, regardless of contraindications for moderate alcohol consumption”. Therefore, our perprotocol analysis implicitly assumes that the incidence of contraindications is not high enough to substantially alter the perprotocol effect estimate.
Target trial emulation
We emulated the above target trial using observational casecontrol data sampled from the NHS [14]. In brief, women aged 30–55 years from 11 U.S. states were enrolled in the NHS in 1976 upon completion of an initial questionnaire, and continuously followed up via biennial questionnaires on lifestyle and behavioral factors, as well as health outcomes. Our treatment, alcohol intake, was first assessed in 1980 using a validated semiquantitative food frequency questionnaire, and has been updated every 2 to 4 years. Alcohol intake values were truncated at the 99.5th percentile to eliminate implausible outliers. The outcome, incident endometrial cancer, was identified via biennial questionnaires or death records, and subsequently confirmed using medical records and pathology reports.
We applied the eligibility criteria of the target trial to women in the observational data. We additionally required women to have a measurement of alcohol intake at baseline (between the ages of 45 and 48) (Supplementary Fig. 4) and having contributed genotyping data used in any of 14 casecontrol studies of various disease outcomes, including endometrial cancer, that were nested in the NHS [16]. Followup started at the time of return of the first questionnaire after all eligibility criteria were met and ended as described above.
We constructed a weighted allele score of 23 single nucleotide polymorphisms (SNPs) that had a genomewide significant association with alcohol intake and that did not have a genomewide significant association for age of initiation of regular smoking, ever smoking, cigarettes per day, or smoking cessation (Supplementary Table 2) [17]. We then assumed that the value of this weighted score had been randomly assigned to eligible women.
To estimate an observational analogue of the intentiontotreat or perprotocol effects, we would proceed as for the target trial except that the randomization indicator would be replaced by a dichotomized version of the genetic score: women with low and high values of the genetic score would be assumed to have been assigned to strategy (1) and (2), respectively. An analogue of the intentiontotreat effect would be of little interest because of the low adherence to the assigned strategies in each level of the genetic score (26.8 and 2.9% among those assigned to strategy (1) and (2), respectively). This is the reason why most MR studies estimate an observational analogue of the perprotocol effect rather than an observational analogue of the intentiontotreat effect. To estimate the former, we used IV estimation as described for the target trial but with the continuous genetic score, rather than the dichotomous randomization indicator, as the proposed instrument. In our observational data, IV condition (1) holds (though weakly, see above), but we need to additionally assume conditions (2) and (3). Condition (2) requires that the genetic variants do not affect outcomes except via alcohol intake, which is trivially true for noncausal (surrogate) genetic variants. Condition (3) holds in the absence of shared causes, possibly arising from population stratification, of the genetic variants and endometrial cancer, and the genetic score be independent of the eligibility criteria (to prevent selection bias because the genotype is determined at conception but the eligibility criteria are defined decades later at the start of followup) [2, 18] and also to the matching factors in the casecontrol studies (which permits us to estimate E[Z Y_{0} = 0] for the estimating equation). Among eligible women with genetic data, we used gestimation of a structural nested cumulative failure time model with the blip function \(\exp \left[{\gamma}_k\left({\overline{A}}_m;\psi \right)\right]=1+\frac{\exp \left(\psi {A}_m\right)1}{km}\). The timescale was in discrete 4year age groups. Using the gestimate \(\hat{\psi}\), we estimated the marginal risk of endometrial cancer from age 45 to age 72 under the “never drink” strategy and the “always ½ drink per day” strategy among all eligible women in the NHS cohort. This study was approved by the Human Research Committees at Brigham and Women’s Hospital, Boston, MA, USA.
Results
Our analysis included 33,426 eligible women and genetic data was available for 6462 of them (Supplementary Table 1; Supplementary Fig. 4). Correlations between the weighted allele score and alcohol intake was about 0.06 across age groups (Supplementary Table 3AB). Odds ratios for incident endometrial cancer per standard deviation increase in the weighted allele score ranged from 0.82 to 1.24 over followup (Supplementary Table 4). Our model converged in only 831 of 1000 bootstrap samples (no solution to the estimating equation could be found in the remaining bootstrap samples). The gestimate \(\hat{\psi}\) (95% confidence interval) was 0.039 (95% CI: − 0.450, 5.902), as shown by the point at which the quadratic form of the estimating equation reached a minimum (Fig. 3A). We used the gestimate \(\hat{\psi}\) to estimate the marginal risk of endometrial cancer from age 45 to age 72 in all eligible women, under the “never drink” strategy, and the “always ½ drink per day” strategy. We observed a risk difference of 0.3 percentage points (95% CI: − 2.7, 97.8) and a risk ratio of 1.06 (95% CI: 0.31, 44.5) (Fig. 3B).
Discussion
Many observational studies which implement IV methods, including MR studies, involve an inherently timevarying treatment or exposure. Therefore, the goal of these studies is to estimate the effect of sustained treatment strategies. We described gestimation of SNCFTMs for IV estimation of absolute risks under different treatment strategies, evaluated it in simulations, and implemented it as part of the observational emulation of a (hypothetical) target trial of alcohol intake interventions and endometrial cancer.
Our proposed method has several advantages: handling of continuous or dichotomous instruments and treatments, no restraints on the number of time points that can be included in the model, adjustment for selection bias due to loss to followup via inverse probability weighting, and application to casecontrol data without knowledge of sampling fractions. We discuss gestimation of SNCFTMs using a timefixed instrument, which is often the case in MR studies, but the method can be readily generalized to timevarying instruments (see Section S1 of the Supplementary material).
We demonstrated the validity of the method via simulations in simplified scenarios in which the effect was constant over time, did not vary across covariate levels, and in which only the most recent blip of treatment at time k had an effect on the outcome at time k + 1. Despite these simplifications, our simulations suffice to show a limitation of gestimation of SNCFTMs: the SNCFTMs should only be used with rare outcomes because the expected conditional counterfactual risks must lie within the interval [0, 1], but the blip function leaves \(\mathrm E\left[Y_k^{\left({\overline{\mathrm A}}_{\mathbf m\mathbf1},\underline0\right)}\vert{\overline A}_m,Z,Y_m=0\right]\) unspecified and thus cannot impose bounds on it [10]. If the rare failure assumption does not hold, estimates may be invalid (see Remark 1 in reference [10]). Estimates for the marginal risks (4.2% in our observational data analysis) can be used to support the rare failure assumption. Under this assumption, it is irrelevant whether controls in the casecontrol studies are sampled using cumulative incidence sampling or incidence density sampling.
Our estimates of the effect of alcohol intake on the risk of endometrial cancer from age 45 to 75 had very wide 95% confidence intervals and our model did not converge in some of the bootstrap samples. This precludes us from making any substantive conclusions. The large variability of our estimate shows that informative MR analyses will ultimately require sample sizes much larger than ours—6492 women with genetic data, of whom only 219 developed endometrial cancer over followup—and/or stronger instruments. Previous analyses of the NHS data using Cox proportional hazards models reported an adjusted rate ratio of 0.88 (95% CI: 0.71, 1.09) when comparing moderate alcohol drinkers (5.0 to 14.9 g/day) to nondrinkers [19].
Especially given the width of the confidence intervals, we made three simplifications in our analysis that otherwise would have resulted in even more imprecise estimates. First, we assumed that IV condition [2] held in the presence of selection over the duration of followup and selection into the analytical sample. Second, we only considered onedimensional parameter models. Multidimensional parameter models may include product terms between baseline covariates L_{0} and treatment (to allow for weaker versions of the homogeneity assumption) or product terms between timevarying covariates L_{m} and treatment (to compare dynamic strategies). The latter would require the development of blipping up procedures to obtain the risk under each dynamic strategy (previous descriptions of SNCFTMs have only described blipping up procedures for blip functions with timefixed covariates) [10]. These procedures would require correct model specification for the nuisance functions \(\mathrm E\left[Y_k^{\left({\overline A}_{m1},\underline0\right)}\vert{\overline A}_m,{\overline L}_m,Z,Y_m=0\right]\) and the density of \({\overline{L}}_m\)[10]. Third, we assumed marginal exchangeability for the instrument Z rather than conditional exchangeability, \(Z\coprod Y_k^g\mid L_0\), where L_{0} is a vector of measured baseline covariates such that gestimation is based on the conditional mean of the instrument, E[Z L_{0}, Y_{0} = 0].
Conclusion
In summary, we have described how to conduct MR and other IV analyses with timevarying treatments and failure time outcomes using SNCFTMs. Our simulations confirm the validity of the proposed method and our data analysis indicate that these MR analyses require very large sample sizes. Larger databases are becoming increasingly available as genetic biobanks, such as the Million Veterans Program [20] and the UK Biobank [21], continue to collect detailed longitudinal data on nongenetic exposures and health outcomes. This work provides a basis for IV analyses of timevarying treatment and failure time outcomes in those databases.
Availability of data and materials
Data that support the findings of this study are not publicly available to protect participants’ privacy and confidentiality. Further information including the procedures to obtain and access data from the Nurses’ Health Studies is described at https://www.nurseshealthstudy.org/researchers(contact email: nhsaccess@channing.harvard.edu). R code to implement structural nested cumulative failure time models for confounding adjustment or for instrumental variable analyses are available at https://github.com/joyshi1/sncftms.
Abbreviations
 IV:

Instrumental variable
 MR:

Mendelian randomization
 NHS:

Nurses’ Health Study
 SNCFTM:

Structural nested cumulative failure time model
 SNP:

Single nucleotide polymorphism
References
Hernán MA, Robins JM. Instruments for causal inference: An epidemiologist’s dream? Epidemiology. 2006;17(4):360–372. Available from: https://pubmed.ncbi.nlm.nih.gov/16755261/ [cited 30 Sep 2020]
Swanson SA, Tiemeier H, Ikram MA, Hernán MA. Nature as a Trialist?: deconstructing the analogy between Mendelian randomization and randomized trials. Epidemiology. 2017;28(5):653–9.
Smith GD, Hemani G. Mendelian randomization: genetic anchors for causal inference in epidemiological studies. Hum Mol Genet. 2014;23(R1):R89–R98.
Burgess S, Small DS, Thompson SG. A review of instrumental variable estimators for Mendelian randomization. Stat Methods Med Res. 2017;26(5):2333–2355. Available from: http://www.ncbi.nlm.nih.gov/pubmed/26282889 [cited 15 Nov 2019].
Shi J, Swanson SA, Kraft P, Rosner B, De Vivo I, Hernán MA. Mendelian randomization with repeated measures of a timevarying exposure: an application of structural mean models. Epidemiology. In Press.
Robins JM. Analytic methods for estimating HIV treatment and cofactor effects. In: Ostrow DG, Kessler R. eds. Methodological Issues of AIDS Mental Health Research. Plenum Publishing; 1993. p 213–290.
Tchetgen EJT, Walter S, Vansteelandt S, Martinussen T, Glymour M. Instrumental variable estimation in a survival context. Epidemiology. 2015;26(3):402.
Martinussen T, Vansteelandt S, Tchetgen Tchetgen EJ, Zucker DM. Instrumental variables estimation of exposure effects on a timetoevent endpoint using structural cumulative survival models. Biometrics. 2017;73(4):1140–1149. Available from: https://pubmed.ncbi.nlm.nih.gov/28493302/ [cited 29 Jun 2020]
Ying A, Tchetgen EJT. A New Causal Approach to Account for Treatment Switching in Randomized Experiments under a Structural Cumulative Survival Model. arXiv Prepr arXiv210312206. 2021.
Picciotto S, Hernán MA, Page JH, Young JG, Robins JM. Structural nested cumulative failure time models to estimate the effects of interventions. J Am Stat Assoc. 2012;107(499):886–900.
Hernán MA, Robins JM. Causal inference: what if. Boca Raton: Chapman & Hall/CRC; 2020.
Dumitrescu RG, Shields PG. The etiology of alcoholinduced breast cancer. Alcohol. 2005;35(3):213–25.
Davies MJ, Baer DJ, Judd JT, Brown ED, Campbell WS, Taylor PR. Effects of moderate alcohol intake on fasting insulin and glucose concentrations and insulin sensitivity in postmenopausal women: a randomized controlled trial. JAMA. 2002;287(19):2559–62.
Bao Y, Bertoia ML, Lenart EB, Stampfer MJ, Willett WC, Speizer FE, et al. Origin, methods, and evolution of the three nurses’ health studies. Am J Public Health. 2016;106(9):1573–81.
National Institute on Alcohol Abuse and Alcoholism. Drinking Levels Defined. Available from: http://www.niaaa.nih.gov/alcoholhealth/overviewalcoholconsumption/whatstandarddrink. [cited 11 Sep 2020]
Lindstrom S, Loomis S, Turman C, Huang H, Huang J, Aschard H, et al. A comprehensive survey of genetic variation in 20,691 subjects from four large cohorts. PLoS One. 2017;12:e0173997. Public Library of Science.
Liu M, Jiang Y, Wedow R, Li Y, Brazel DM, Chen F, et al. Association studies of up to 1.2 million individuals yield new insights into the genetic etiology of tobacco and alcohol use. Nat Genet. 2019;15:237–44 Nature Publishing Group.
Swanson SA. A Practical Guide to Selection Bias in Instrumental Variable Analyses. Epidemiology. 2019;30(3):345–349. Available from: http://www.ncbi.nlm.nih.gov/pubmed/30896458 [cited 9 Dec 2019].
Je Y, De Vivo I, Giovannucci E. Longterm alcohol intake and risk of endometrial cancer in the Nurses’ Health Study, 19802010. Br J Cancer. 2014;111(1):186–194. Available from: https://pubmed.ncbi.nlm.nih.gov/24853180/ [cited 31 Mar 2021]
Gaziano JM, Concato J, Brophy M, Fiore L, Pyarajan S, Breeling J, et al. Million Veteran Program: A megabiobank to study genetic influences on health and disease. J Clin Epidemiol. 2016;70:214–223. Available from: https://linkinghub.elsevier.com/retrieve/pii/S0895435615004448 [cited 15 Apr 2019]
Bycroft C, Freeman C, Petkova D, Band G, Elliott LT, Sharp K, et al. The UK Biobank resource with deep phenotyping and genomic data. Nature. 2018;562(7726):203–209. Available from: https://pubmed.ncbi.nlm.nih.gov/30305743/ [cited 15 Sep 2020]
Acknowledgements
The authors would like to thank the participants and staff of the Nurses’ Health Study for their valuable contributions, and the following state cancer registries for their help: AL, AZ, AR, CA, CO, CT, DE, FL, GA, ID, IL, IN, IA, KY, LA, ME, MD, MA, MI, NE, NH, NJ, NY, NC, ND, OH, OK, OR, PA, RI, SC, TN, TX, VA, WA, and WY.
Funding
The Nurses’ Health Study is supported by grants from the National Cancer Institute [UM1 CA186107; P01 CA87969; R01 CA49449]. J.S. is supported by a UCB Fellowship. S.A.S. is supported by a NWO/ZonMW Veni grant [91617066]. I.D.V. is supported by the Brigham Research Institute through the Fund to Sustain Research Excellence. M.A.H. is supported by the National Institutes of Health (NIH) [R37 AI102634]. These funders had no role in study design, data collection, analysis, decision to publish, or manuscript preparation.
Author information
Authors and Affiliations
Contributions
JS, SAS and MAH participated in the conception and design of the work. JS conducted the analyses and drafted the initial manuscript. SAS, PK, BR, IDV and MAH assisted with the interpretation of the data and preparation of the final manuscript. All authors approved the final version of the manuscript to be published.
Corresponding author
Ethics declarations
Ethics approval and consent to participate
The study was approved by the Brigham and Women’s Hospital Institutional Review Board and the Subject Committee at Harvard T.H. Chan School of Public Health. All participants provided written informed consent. All methods were carried out in accordance with relevant guidelines and regulations.
Consent for publication
N/A
Competing interests
The authors declare they have no competing interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Additional file 1:
S1. Structural nested cumulative failure time models with a timevarying instrumental variable. Supplementary Figure 1. Distributions of ψ estimates across 1,000 iterations using gestimation with an instrumental variable under different datagenerating mechanisms, different sample sizes (n = 10,000; n = 25,000 or n = 50,000), and different instrumentexposure strengths (α_{ZA} = 0.10; α = 0.25; or α = 0.45). The lower and upper hinges correspond to the 25th and 75th percentile. The lower and upper whiskers extend from the hinge to the smallest and largest values no further than 1.5*IQR from the hinge, where IQR is the interquartile range. The median is represented by the line between the hinges, and the mean is represented by the diamond point symbol. The percentages provided above each box plot represents the percentage of iterations in which the model did not converge. Supplementary Figure 2. A. Distributions of marginal risk differences across 1,000 iterations using different gestimation approaches under different datagenerating mechanisms with λ = 5%. The lower and upper hinges correspond to the 25th and 75th percentile. The lower and upper whiskers extend from the hinge to the smallest and largest values no further than 1.5*IQR from the hinge, where IQR is the interquartile range. The median is represented by the line between the hinges, and the mean is represented by the diamond point symbol. B. Distributions of marginal risk ratios across 1,000 iterations using different gestimation approaches under different datagenerating mechanisms with λ = 5%. The lower and upper hinges correspond to the 25th and 75th percentile. The lower and upper whiskers extend from the hinge to the smallest and largest values no further than 1.5*IQR from the hinge, where IQR is the interquartile range. The median is represented by the line between the hinges, and the mean is represented by the diamond point symbol. Supplementary Figure 3. A. Distributions of marginal risk differences across 1,000 iterations using different gestimation approaches under different datagenerating mechanisms with baseline hazards of 5%, 10% and 25%. The lower and upper hinges correspond to the 25th and 75th percentile. The lower and upper whiskers extend from the hinge to the smallest and largest values no further than 1.5*IQR from the hinge, where IQR is the interquartile range. The median is represented by the line between the hinges, and the mean is represented by the diamond point symbol. B. Distributions of marginal risk ratios across 1,000 iterations using different gestimation approaches under different datagenerating mechanisms with baseline hazards of 5%, 10% and 25%. The lower and upper hinges correspond to the 25th and 75th percentile. The lower and upper whiskers extend from the hinge to the smallest and largest values no further than 1.5*IQR from the hinge, where IQR is the interquartile range. The median is represented by the line between the hinges, and the mean is represented by the diamond point symbol. Supplementary Figure 4. Flowchart of inclusion and exclusion of Nurses’ Health Study participants. Supplementary Table 1. Characteristics of Nurses’ Health Study I participants at start of followup. Supplementary Table 2. SNPs identified as proposed instruments for alcohol intake. Supplementary Table 3. A. Associations of proposed instrument (weighted allele score) with alcohol intake across baseline fiveyear age groups. B. Distributions of alcohol intake and proportion of heavy drinkers across quartiles of the proposed instrument (weighted allele score) across baseline fiveyear age groups. Supplementary Table 4. Associations of the proposed instrument (weighted allele score) with hazard of endometrial cancer across baseline fiveyear age groups.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.
About this article
Cite this article
Shi, J., Swanson, S.A., Kraft, P. et al. Instrumental variable estimation for a timevarying treatment and a timetoevent outcome via structural nested cumulative failure time models. BMC Med Res Methodol 21, 258 (2021). https://doi.org/10.1186/s1287402101449w
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s1287402101449w