Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2013 Jul 1.
Published in final edited form as: Epidemiology. 2012 Jul;23(4):574–582. doi: 10.1097/EDE.0b013e31824d1ccb

Estimating the effects of multiple time-varying exposures using joint marginal structural models: alcohol consumption, injection drug use, and HIV acquisition

Chanelle J Howe a, Stephen R Cole b, Shruti H Mehta c, Gregory D Kirk c,d
PMCID: PMC3367098  NIHMSID: NIHMS359848  PMID: 22495473

Abstract

The joint effects of multiple exposures on an outcome are frequently of interest in epidemiologic research. In 2001, Hernán, Brumback, and Robins (JASA 2001; 96: 440–448) presented methods for estimating the joint effects of multiple time-varying exposures subject to time-varying confounding affected by prior exposure using joint marginal structural models. Nonetheless, the use of these joint models is rare in the applied literature. Minimal uptake of these joint models, in contrast to the now widely used standard marginal structural model, is due in part to a lack of examples demonstrating the method. In this paper, we review the assumptions necessary for unbiased estimation of joint effects as well as the distinction between interaction and effect measure modification. We demonstrate the use of marginal structural models for estimating the joint effects of alcohol consumption and injection drug use on HIV acquisition, using data from 1,525 injection drug users in the AIDS Link to Intravenous Experience cohort study. In the joint model, the hazard ratio (HR) for heavy drinking in the absence of any drug injections was 1.58 (95% confidence interval= 0.67–3.73). The HR for any drug injections in the absence of heavy drinking was 1.78 (1.10–2.89). The HR for heavy drinking and any drug injections was 2.45 (1.45–4.12). The P values for multiplicative and additive interaction were 0.7620 and 0.9200, respectively, indicating a lack of departure from effects that multiply or add. However, we could not rule out interaction on either scale due to imprecision.


The joint effects of multiple exposures on an outcome are frequently of interest in epidemiologic research.1 Joint effects concern the combined effect of two or more exposures on an outcome, and whether this combined effect is more or less than expected on a given scale (i.e., additive or multiplicative). Departures from expected combined effects are referred to as interaction. Effect measure modification, in contrast, focuses on whether the effect of a single exposure on an outcome varies with the level of second variable.2 For example, in the area of cardiovascular disease epidemiology, if the study objective was to estimate the combined effect of oral contraceptive use and smoking on the risk of myocardial infarction, then the research would attempt to estimate the joint effects of (and interaction between) oral contraceptive use and smoking on the risk of myocardial infarction. However, if the objective was whether the effect of oral contraceptive use on myocardial infarction varied by smoking status, then the aim would be to estimate effect measure modification.

In 2001, Hernán, Brumback, and Robins3 presented methods for estimating the joint effects of multiple time-varying exposures subject to time-varying confounding using joint marginal structural models. We refer to these marginal structural models as “joint” models, given that they examine the potential outcome across the joint distribution of the two or more exposures (not to be confused with models for the joint distribution of survival and a repeated measure).4 Standard marginal structural models5,6 avoid removal of indirect effects, and they also avoid the selection bias that can occur with standard adjustment techniques when estimating the effect of a time-varying exposure subject to time-varying confounding affected by prior exposure. Joint marginal structural models have the same methodological advantage when estimating the effect of multiple time-varying exposures, each affected by time-varying confounders affected by prior exposure. Both standard and joint marginal structural models can also be used to account for selection bias due to censoring.

Although estimating joint effects of time-varying exposures is of interest in both chronic and infectious disease epidemiology,710 a decade after the paper by Hernán, Brumback, and Robins 3 was published we found only three publications1113 that used a joint marginal structural model in the applied biomedical and epidemiologic literature among articles citing that paper. This low uptake of joint marginal structural models, in contrast to the widely used standard marginal structural model,6,1419 may be due to a lack of examples showing the implementation of the model.

The objective of this paper is to describe and demonstrate joint marginal structural Cox proportional hazards models based on an example from the HIV literature. (Although joint marginal structural models can be fit for other types of regression models,2,3 these other models are not the focus of this paper.) Previous work7,8,19 has indicated alcohol consumption as well as injection drug use as risk factors for HIV acquisition. To identify groups at particularly high risk for HIV infection, the interaction between risk factors for HIV acquisition has been of interest.7,8 As depicted in Figure 1, both time-varying alcohol consumption and injection drug use are likely subject to time-varying confounding affected by prior exposure. In particular sexual risk behaviors and other patterns of drug use are likely common causes of alcohol consumption, injection drug use, and HIV acquisition and may be affected by prior alcohol consumption or injection drug use. Therefore, unbiased estimation of the joint effects of these two risk factors on HIV acquisition, likely requires use of joint marginal structural models.

Figure 1.

Figure 1

Causal diagram for the effect of alcohol consumption and injection drug use on HIV acquisition.

We used data from the AIDS Link to Intravenous Experience (ALIVE) cohort study20 to demonstrate estimation of the joint effects of alcohol consumption and injection drug use on HIV acquisition. The SAS (SAS Institute, Inc., Cary, North Carolina) code used to estimate these joint effects is provided in the eAppendix (http://links.lww.com). Assumptions necessary for unbiased estimation of joint effects will be described generally, as well in the context of the ALIVE example. Lastly, we will make additional clarifications regarding the distinction between interaction and effect measure modification.

METHODS

Study Population

Details regarding recruitment, inclusion criteria, and data collection for this example are provided elsewhere.19,20 Briefly, the ALIVE cohort enrolled 3,627 HIV seronegative adults with a history of injection drug use in Baltimore, Maryland, between 1988 and 2008. Through extensive community outreach, participants were recruited from venues where injection drug users in Baltimore were known to frequent, as well as from other local settings, such as sexually transmitted disease clinics, drug abuse treatment programs, homeless shelters, and emergency rooms.

Of 3,627 enrollees, 1,525 were African American with complete demographic information who were seronegative at entry, and who had at least one seronegative follow-up visit subsequent to baseline, thereby making them eligible for the analysis. Blood samples, as well as information on demographic characteristics, drug and alcohol use history and practices, and sexual behaviors, were collected at study entry and every six months thereafter. Blood specimens were tested for HIV antibodies by enzyme-linked immunoassay, and reactive specimens were confirmed by western blot. The 1,525 participants were followed for up to 20 years, yielding 8,181 person-years of follow-up, during which time 155 acquired HIV.

Notation

Let uppercase letters denote random variables and lowercase letters represent possible realizations of random variables. In the ALIVE cohort of i=1,2, …, N = 1525 participants with ki(1)< ki(2) <… ki(M) ordered measurement times since study entry, Ti is the time in years from study entry to HIV infection and Ci is the time in years from study entry to censoring due to dropout, death, or reaching the end of the study. Therefore, Y= min(Ti, Ci) and δi is an indicator of whether HIV infection was observed, where δi =1 if yi = ti and δi = 0 if yi = ci. Below, the subscript i will be suppressed where possible. Let X1i(k(m)) and X2i(k(m)) be the level of alcohol consumption and injection drug use status at time k(m), respectively.

Let L1i(k(m)) be a vector denoting the levels of potential confounders of the relationship between X1 and T at time k(m), while Z1i is a vector subset of L1i (k(m)) corresponding to time-fixed confounders measured at study entry. Let L2i(k(m)) be a vector denoting the levels of potential confounders of the relationship between X2 and T at time k(m), while Z2i is a vector subset of L2i(k(m)) corresponding to time-fixed confounders measured at study entry. Let L3i(k(m)) be a vector denoting the levels of common predictors of the relationship between T and C at time k(m), whereas Z3i is a vector subset of L3i(k(m)) corresponding to time-fixed common predictors measured at study entry. Covariates L1, L2, and L3 were assumed to be the same and included those that were time-fixed (i.e., age at entry, sex, and years of education) as well as time-updated pertaining to the prior six months (i.e., cocaine use; shooting gallery attendance; number of sexual partners; male sex with men; sexually transmitted infections including genital herpes simplex virus, genital warts, gonorrhea, and syphilis). Selected covariates were variables shown to independently increase the risk of HIV infection among study participants.7,8

Allow overbars to represent the history of a given random variable from study entry to k(m) (e.g., 1i (k(m)) = {X1i (k(1)), X1i (k(2)), …, X1i (k(m)}). Therefore, let Tix¯1i(k(m)),x¯2i(k(m)) represent the potential time to HIV infection for participant i had he or she been assigned alcohol consumption and injection drug use history 1i (k(m)) and 2i(k(m)) rather than the observed alcohol consumption and injection drug use history of 1i (k(m)) and 2i (k(m)). Similarly, TiX¯1i(k(m)),X¯2i(k(m)) represents the observed time to HIV infection for participant i for observed alcohol consumption and injection drug use history 1i (k(m)) and 2i (k(m)). Finally, let D1i (k(m)) be an indicator that participant i is censored due to dropout at time k(m), D2i (k(m)) be an indicator that participant i is censored due to death at time k(m), Xi = [X1i, X2i], Li =[L1i, L2i, L3i], Zi = [Z1i, Z2i, Z3i], and Di = [D1i, D2i].

Joint Marginal Structural Cox Proportional Hazards Model

Equation (1) shows the marginal structural Cox proportional hazards model for the joint effects of X1(k(m)) and X2(k(m)) on T,

λTx¯(k(m)Z)=λ0(k(m))×exp(α1x1(k(m))+α2x2(k(m))+α3x1(k(m))x2(k(m))+α4Z1+α5Z2+α6Z3), (1)

where T = T12. Also, λ0 (k(m)) is the baseline hazard function at time k(m) and λT (k(m)|Z) is the hazard function for T at time k(m) conditional on Z. The parameter α1 is the log hazard ratio for the effect of X1 (k(m)) on T when X2 (k(m)) = 0, α2 is the log hazard ratio for the effect of X2(k(m)) on T when X1(k(m)) = 0, and α3 is the log of the ratio of hazard ratios for the effect of X1(k(m)) and X2(k(m)) on T. In addition, α4, α5, and α6 are the vectors of log hazard ratios for the time-fixed covariates comprising Z1, Z2, and Z3, respectively while α = [α1, α2, α3, α4, α5, α6].

The joint marginal structural model in equation (1) is fit in a two-part process using inverse probability weights (i.e., Wi) described below. Conditional on the estimated weights, the weighted maximum partial likelihood estimates for α̂ in equation (1) are obtained by maximizing,

WL(𝛂)=i=1N{exp(α1x1(k(m))+α2x2(k(m))+α3x1(k(m))x2(k(m))+α4Z1+α5Z2+α6Z3)r=1NI[yryi]×exp(α1x1(k(m))+α2x2(k(m))+α3x1(k(m))x2(k(m))+α4Z1+α5Z2+α6Z3)×w^r(yi)}δi×w^i(yi),

where I[yryi] is an indicator of participant r being in the risk set at follow-up time yi. Given necessary assumptions outlined below, α̂1, α̂2, and α̂3 are consistent asymptotically normal estimates of the joint effects of X1 and X2 on Tx1x2 while correcting for potential time-varying confounding by L1 and L2 as well as selection bias due to censoring informed by L3. Therefore, α̂3, can be used to consistently assess the presence or absence of multiplicative interaction.

Inverse Probability Weights

The following stabilized weights can be used to fit the joint marginal structural model in equation (1):

W(t)=WX1(t)WX2(t)WD1(t)WD2(t), (2)

where

WX1(t)=k(m)tf[X1(k(m))X¯1(k(m1)),X¯2(k(m1)),Z1,D¯(k(m))=0,Tk(m)]f[X1(k(m))X¯1(k(m1)),X¯2(k(m1)),L¯1(k(m1)),D¯(k(m))=0,Tk(m)], (3)
WX2(t)=k(m)tf[X2(k(m))X¯1(k(m)),X¯2(k(m1)),Z2,D¯(k(m))=0,Tk(m)]f[X2(k(m))X¯1(k(m)),X¯2(k(m1)),L¯2(k(m1)),D¯(k(m))=0,Tk(m)], (4)
WD1(t)=k(m)tP[D1(k(m))=0X¯(k(m)),Z3,D¯(k(m1))=0,Tk(m)]P[D1(k(m))=0X¯(k(m)),L¯3(k(m)),D¯(k(m1))=0,Tk(m)] (5)
WD2(t)=k(m)tP[D2(k(m))=0X¯(k(m)),Z3,D¯(k(m1))=0,Tk(m)]P[D2(k(m))=0X¯(k(m)),L¯3(k(m)),D¯(k(m1))=0,Tk(m)]. (6)

The exposure weight WX1(t) corrects for potential time-varying confounding by L1. The exposure weight WX2(t) corrects for potential time-varying confounding by L2. The censoring weight WD1(t) corrects for potential selection bias due to censoring at dropout informed by L3. The censoring weight WD2(t) corrects for potential selection bias due to censoring at death informed by L3.

For j = 1,2 and logit p = ln(p/(1 − p)), the numerator for the weights in equations (3) and (4) can be estimated from the following pooled logistic regression model:

logitP[Xj(k(m))=xjQj,D¯(k(m))=0]=βj0(k(m))+βj1Qj(k(m)). (7)

Note that βj0(k(m)) are the time-specific intercepts with time-fixed confounders included in the pooled model. In addition, Q1(k(m)) ={1(k(m−1)), 2(k(m−1)), Z1}, Q2(k(m)) ={1(k(m)), 2(k(m−1)), Z2}, and βj1 is a vector of log hazard ratios for the effect of and Zj on Xj (k(m)). The denominator for the weights in equations (3) and (4) can be estimated from the following pooled logistic regression model:

logitP[Xj(k(m))=xjUj,D¯(k(m))=0]=γj0(k(m))+γj1Uj(k(m)). (8)

Note that γj0 (k(m)) are the time-specific intercepts with time-fixed and time-varying confounders included in the pooled model. In addition, U1(k(m)) = {1(k(m−1)), 2(k(m−1)), 1(k(m−1))}, U2(k(m)) = {1(k(m−1)), 2(k(m−1)), 2(k(m−1))}, and γj1 is a vector of log hazard ratios for the effect of and j (k(m−1)) on Xj(k(m)).

Similarly, the numerator and denominator for the weights in equations (5) and (6) can be estimated from the following two pooled logistic regression models:

logitP[Dj(k(m))=0X¯,Z3,D¯(k(m1))=0]=θj0(k(m))+θj1X¯(k(m))+θj2Z3 (9)
logitP[Dj(k(m))=0X¯,L¯3,D¯(k(m1))=0]=υj0(k(m))+υj1X¯(k(m))+υj2L¯3(k(m)), (10)

where θj0(k(m)) and υj0 (k(m)) are time-specific intercepts with solely time-fixed predictors and all common predictors, respectively, included in the pooled model. In addition, θ j1 andυj1 are vectors of log hazard ratios for the effect of (k(m)) on Dj(k(m)) adjusting for solely time-fixed and all common predictors of T and C, respectively. Lastly, θj2 and υj2 are vectors of log hazard ratios for the effect of Z3 and 3 (k(m)) on Dj(k(m)), respectively, adjusting for (k(m)).

Data Analysis

In the pooled logistic regression models as well as the joint marginal structural Cox model, X1 was alcohol consumption as drinks per week in the prior six months and X2 was drug injections per week in the prior six months. Drinks per week were categorized as 0–20 and 21–140, with the latter category termed “heavy” alcohol consumption. Drug injections per week were categorized as 0 and 1–39, with the latter category termed “any” drug injections. These categories were selected based on prior research19 and to ensure an ample number of HIV cases across the levels of the joint distribution of X1and X2 while minimizing extreme weights and preserving meaningful comparisons.

In all models, predictors were included as either indicator variables for categories or a restricted quadratic spline with knots at the 5th, 35th, 65th, and 95th percentiles.21 In the pooled logistic regression models, the time-varying cofounders included in L1 and L2 were from the prior measurement time, while the time-varying common predictors included in L3 were from the most recent measurement time. Weights estimated from the pooled logistic models had a mean of 1.03 (standard deviation= 0.56), with a range of 0.11 to 17.99. These weights are shown over follow-up in Figure 2. To examine additive interaction, results from the joint marginal structural model with a product term between alcohol consumption and injection drug use were used to estimate the relative excess risk due to interaction (RERI) as well as the corresponding confidence limits and P value based on the multivariate delta method. The RERI (= exp (α̂1 + α̂2 + α̂3) − exp (α̂1) − exp(α̂2)+1) represents the increased hazard due to additive interaction where an RERI=0 corresponds to the null hypothesis of no additive interaction.22

Figure 2.

Figure 2

Box plots of stabilized weights estimated from pooled logistic models using data on 1,525 African American injection drug users with 8,181 person-years of follow-up, ALIVE cohort, 1988–2008.

Unadjusted and standard adjusted Cox models were provided for comparison. The standard adjusted model accounted for the same confounders as the weighted model, as well as concurrent values of time-varying confounders, to reflect practices in the literature.7,8,23 The product term between alcohol consumption and injection drug use would represent interaction in these models only in the absence of bias due to confounding, measurement, or selection with respect to both exposures. Conversely, the product term would represent effect measure modification if bias due to confounding, measurement, or selection was present for only one of the two exposures.2 Given that the product term between alcohol consumption and injection drug use in the joint marginal structural model was not statistically significant on the multiplicative scale, a joint marginal structural model as well as unadjusted and standard adjusted Cox models without the corresponding product terms were examined.

We assessed proportional hazards in the weighted Cox model by a joint robust Wald test on the product terms between the indicator for heavy drinks per week and time, and between the indicator for any drug injections per week and time in the model without a product term between alcohol consumption and injection drug use. A similar joint Wald test was performed for log time. For the joint Wald test for the product terms with time, P= 0.0817; for the joint Wald test for the product terms with log time, P=0.0315. The coefficients corresponding to the P value for the joint Wald test in the time model were also closer to the null than the coefficients in the log time model. This suggests nonproportionality in the weighted Cox model with respect to log time and, to a lesser degree, time.

To explore this nonproportionality, the effects of alcohol consumption and injection drug use were examined for follow-up times within the first three years of study enrollment and after three years, while including a product term between alcohol consumption and injection drug use in the joint weighted model. Three years was selected because it was approximately the median time to infection among the HIV cases. To circumvent any occurrences of nonproportionality potentially due to selection bias innate to the hazard ratio,24 the cumulative incidence curves (i.e., complement of survival functions) were compared by strata of alcohol consumption and injection drug use. All analyses were performed in SAS version 9.2.

RESULTS

Table 1 describes the characteristics in the prior six months of participants at study entry and over follow-up. Among the 1,525 participants, 28% were female. At study entry, the median age was 37 (quartiles= 32; 42) years and the median number of years of formal education was 10 (quartiles= 10; 12). Over follow-up, 63% of the person-years occurred while participants were consuming any alcohol and 58% occurred while injecting drugs in the prior six months. Figure 3 shows alcohol consumption and injection drug use in the prior six months by years of follow-up. Alcohol consumption and any drug injecting in the prior six months appeared to decrease over follow-up.

Table 1.

Characteristics in the prior six months of 1525 African American injection drug users at study entry and over 8181 person-years of follow-up, ALIVE cohort, 1988–2008.

Characteristic Entry (n = 1525 participants) Follow-up (n = 8181 person-years)
Age, years a 37 (32; 42) 42 (36; 48)
Older than age 37 years; % (no.) 48 (736) 72 (5890)
Female sex; % (no.) 28 (428) 28 (2291)
Education, years a 10 (10; 12) 10 (10; 12)
More than 10 years of education; % (no.) 43 (662) 44 (3600)
Cocaine use; b % (no.) 78 (1184) 58 (4745)
Number of sexual partners; % (no.)
 >1 40 (604) 29 (2373)
 1 43 (661) 47 (3845)
 0 17 (260) 24 (1963)
Male having sex with a man; % (no.) 1 (16) 0.6 (49)
Any sexually transmitted infections; c % (no.) 3 (52) 2 (164)
Number of drug injections/week a 6 (1; 14) 1 (0; 7)
Number of drug injections/week; % (no.)
 1–39 80 (1222) 58 (4745)
 0 20 (303) 42 (3436)
Inject heroin only; % (no.) 61 (929) 42 (3436)
Inject cocaine only; % (no.) 57 (867) 36 (2945)
Inject both heroin and cocaine; % (no.) 57 (865) 39 (3191)
Attended shooting gallery; % (no.) 13 (199) 6 (491)
Number of drinks/week a 8 (1; 28) 4 (0; 18)
Number of drinks/week; % (no.)
 21–140 32 (491) 23 (1882)
 1–20 44 (668) 40 (3272)
 0 24 (366) 37 (3027)
a

Median (quartiles).

b

Crack, snort cocaine, inject cocaine only, and inject both heroin and cocaine.

c

Genital herpes simplex virus, genital warts, gonorrhea, or syphilis.

Figure 3.

Figure 3

Alcohol consumption and injection drug use in the prior six months by years of follow-up among 1,525 African American injection drug users with 8,181 person-years of follow-up, ALIVE cohort, 1988–2008.

Table 2 shows crude, adjusted, and weighted hazard ratios with 95% confidence intervals (CIs) for the joint effects of alcohol consumption and injection drug use in the prior six months on HIV acquisition averaged over the 8,181 person-years of follow-up. These models each included a product term between alcohol consumption and injection drug use. In the weighted model, the effect of heavy drinking per week in the absence of any drug injections was a hazard ratio of 1.58 (95% CI= 0.67–3.73). The effect of any drug injections per week in the absence of heavy drinking was a hazard ratio of 1.78 (1.10–2.89). The effect of heavy drinking and any drug injections was a hazard ratio of 2.45 (1.45–4.12). The robust P value for the Wald test for the product term was 0.7620. The corresponding RERI was 0.08 (95% confidence intervals= −1.43 to 1.59) which corresponded to a P value of 0.9200. Analogous unadjusted hazard ratio estimates were 1.67 (0.72–3.84), 2.07 (1.31–3.28), and 3.36 (2.07–5.44), respectively, with a P value of 0.9474 for the Wald test for the product term. The corresponding standard adjusted hazard ratio estimates were 1.34 (0.57–3.13), 1.56 (0.87–2.77), and 2.13 (1.15–3.95), respectively, with a P value of 0.9597 for the Wald test for the product term.

Table 2.

Crude, adjusted, and weighted estimates for joint effects of alcohol consumption and injection drug use in the prior six months on HIV acquisition among 1525 African American injection drug users followed for 8181 person-years, ALIVE cohort, 1988–2008.

No. Injections/week No. Drinks/week No. HIV infections/person-years Hazard Ratio (95% CI)
Crude Adjusted a Weighted a
1–39 21–140 53/1475 3.36 (2.07–5.44) 2.13 (1.15–3.95) 2.45 (1.45–4.12)
0–20 68/3283 2.07 (1.31–3.28) 1.56 (0.87–2.77) 1.78 (1.10–2.89)
Overall 121/4758
0 21–140 7/436 1.67 (0.72–3.84) 1.34 (0.57–3.13) 1.58 (0.67–3.73)
0–20 b 27/2987 1.00 1.00 1.00
Overall 34/3423
P value for product term c P=0.9474 P=0.9597 P=0.7620
Overall 155/8181
a

Accounted for age at entry, sex, years of education, cocaine use, shooting gallery attendance, number of sexual partners, male sex with men, as well as sexually transmitted infections including genital herpes simplex virus, genital warts, gonorrhea, and syphilis.

b

Reference category

c

The product term would represent interaction only in the absence of bias due to confounding, measurement, or selection with respect to both exposures. Conversely, the product term would represent effect measure modification if bias due to confounding, measurement, or selection was present for only one of the two exposures. Unbiased estimation of joint effects and in turn interaction also requires consistency, positivity, and correct model specification.

Figure 4 shows the proportion HIV positive by alcohol consumption and injection drug use for the prior six months based on the weighted Cox model. Proportions were estimated at the median age and years of education at study entry for the entire cohort and among men. Participants who reported both injecting and heavy drinking had the highest proportion of HIV infections over follow-up. Those who reported either injecting or heavy drinking, but not both, had the second highest proportion of HIV infections. Those who did not report injecting or heavy drinking had the lowest proportion of HIV infections.

Figure 4.

Figure 4

Proportion HIV positive by alcohol consumption and injection drug use in the prior six months among 1,525 African American injection drug users with 8,181 person-years of follow-up, ALIVE cohort, 1988–2008. Proportions were estimated at the median age and years of education for the entire cohort at study entry and among men.

In the weighted Cox model without a product term between alcohol consumption and injection drug use, the effect of heavy drinking per week was a hazard ratio of 1.41 (0.98–2.01). The effect of any drug injections per week was a hazard ratio of 1.72 (1.12–2.64). Analogous unadjusted hazard ratio estimates were 1.63 (1.17–2.27) and 2.06 (1.38–3.07), respectively. The corresponding standard adjusted hazard ratio estimates were 1.36 (0.97–1.92) and 1.57 (0.94–2.62), respectively.

Table 3 shows the weighted hazard ratio with 95% CI for the joint effects of heavy drinking and any drug injections in the prior six months within the first three years of follow-up and after. This model included a product term between alcohol consumption and injection drug use. The joint effects were larger in the first three years of follow-up compared with between three and twenty years. However, the CI for follow-up times within the first three years was particularly imprecise.

Table 3.

Weighted estimates for joint effects of alcohol consumption and injection drug use in the prior six months on HIV acquisition before and after 3 years of follow-up among 1525 African American injection drug users followed for 8181 person-years, ALIVE cohort, 1988–2008.

Injections/week No. Drinks/week No. HIV infections person-years Weighted a Hazard Ratio (95% CI)
Within the first 3 years of follow-up After the first 3 years of follow-up
1–39 21–140 53/1475 3.40 (1.13–10.23) 2.35 (1.33–4.16)
0–20 68/3283 2.91 (0.97–8.75) 1.49 (0.88–2.55)
Overall 121/4758
0 21–140 7/436 3.17 (0.78–12.83) 1.11 (0.33–3.74)
0–20 b 27/2987 1.00 1.00
Overall 34/3423
Overall 155/8181
a

Accounted for age at entry, sex, years of education, cocaine use, shooting gallery attendance, number of sexual partners, male sex with men, as well as sexually transmitted infections including genital herpes simplex virus, genital warts, gonorrhea, and syphilis.

b

Reference category.

DISCUSSION

Among 1,525 African American injection drug users in the ALIVE cohort followed for 8,181 person-years, the effects of heavy drinking and any drug injections on HIV acquisition appeared not to depart from multiplicative or additive effects. However, we could not rule out interaction on either scale due to imprecision. If the results of the weighted analysis are corroborated by independent data sources, these results would suggest that alcohol-specific HIV risk reduction interventions should be targeted to both injectors and non-injectors and, similarly, injection-specific interventions should be targeted to both heavy and non-heavy drinkers.

Based on the weighted model, however, the hazard ratio for the effect of heavy drinking and any drug injections appeared to be larger within the first three years of follow-up. This larger hazard ratio may be due to a waning effect of heavy drinking and injecting on HIV acquisition over time. Evidence against a waning effect was provided in Figure 4, which shows that participants who reported both injecting and heavy drinking consistently had the highest proportion of HIV infections. Alternatively, chance or selection bias due to a greater initial depletion of those susceptible to HIV infection among heavy drinkers and injectors may be the source of the observed attenuation with time.24 Selection bias due to a greater initial depletion of susceptible heavy drinkers and injectors would not be accounted for in the censoring weights, given that a measure of innate susceptibility to HIV infection was not available as a covariate when estimating the censoring weights.

The standard adjusted analysis provided hazard ratio estimates that were somewhat attenuated compared with the results from the weighted analysis, both analyses included product terms between alcohol consumption and injection drug use. Specifically, the excess hazard for the effect of heavy drinking and any drug injections from the weighted analysis was 22% (1–1.13/1.45) stronger than results from the standard adjusted analysis. These attenuated hazard ratio estimates may be due to the fact that standard adjustment can remove indirect effects mediated through time-varying confounders and induce selection bias.3,2527

For unbiased estimation of effects in the context of standard regression and marginal structural models, the assumptions of exchangeability, consistency, positivity, and correct model specification must be met.28 As noted by Hernán, Brumback, and Robins,3 as well as by VanderWeele,2 the above assumptions must also hold for unbiased estimation of joint effects. In the context of the joint marginal structural model, the exchangeability assumption states that there are no unmeasured confounders of the relationship between X1 and T as well as the relationship between X2 and T. In addition, informative censoring by unmeasured factors must be absent. Formally,

f[X(k(m))X¯(km1),L¯(k(m1))]=f[X(k(m))X¯(km1),L¯(k(m1)),Tx¯]andf[TL¯]=f[TL¯,C].

For the ALIVE example, unmeasured factors may exist, given that the indicators used for high-risk behaviors may not fully capture the association between such behaviors and HIV acquisition or censoring among participants.19 Measurement error regarding covariates of interest poses an additional threat to exchangeability as does the observed limited number of HIV infections across strata of the joint distribution of alcohol consumption and injection drug use.

Consistency states that T = T, p if = for all p, where p is the mechanism by which the level of X is determined. As such, the observed failure time is the same as the failure time that would have occurred if X were assigned. It also implies that the mechanism by which the level of X is determined does not influence the effect of on T. In other words, among ALIVE participants, the time to HIV acquisition for the observed level of alcohol consumption and number of drug injections is the time to HIV acquisition that would have occurred if the level of alcohol consumption and drug injections were assigned. In addition, the effect of heavy drinking or injection drug use does not depend on drinking or injection pattern (e.g., binge drinking or frequent injecting).

Positivity requires that

f[X(k(m))X¯(k(m1)),L¯(k(m1)),D¯(k(m))=0,Tk(m)]>0forallxXandP(D(k(m))=0X¯(k(m)),L¯(k(m)),D¯(k(m1))=0,Tk(m))>0forallk(m)max(yi).

Therefore, every level of alcohol consumption as well as injection drug use must be possible in each subset of the ALIVE cohort defined by the observed histories of alcohol consumption, injection drug use, and measured confounders. Similarly, there must be participants who are not censored at each observed follow-up time within each subset of the cohort defined by the observed histories of alcohol consumption, injection drug use, and measured common predictors of censoring and HIV acquisition time. In the present setting, we did not expect deterministic departures from positivity, and we observed no evidence of random departures from positivity. The latter is based on a lack of extreme weights.28,29

Correct model specification implies that appropriate functional forms are used in the pooled logistic and final weighted models such that

f[X(k(m))X¯(k(m1)),L¯(k(m1))]=f[X(k(m))go(X¯(k(m1))),g1(L¯(k(m1)))].andP(D(k(m))=0X¯(k(m)),L¯(k(m)),D¯(k(m1))=0,Tk(m))=P(D(k(m))=0g2(X¯(k(m))),g3(L¯(k(m))),D¯(k(m1))=0,Tk(m)),

where go((k(m−1))), g1 ((k(m−1))), g2 ((k(m))), and g3((k(m))) are coarsening functions of (k(m−1)), (k(m−1)), (k(m)), and (k(m)), respectively. The lack of extreme weights in the ALIVE cohort also provides some evidence against model misspecification.28,29 In addition, positivity and correct model specification were facilitated by careful consideration of all categorizations, particularly for alcohol consumption and injection drug use. Furthermore, indicators for categories and splines in the case of continuous predictors were used in the modeling process.

The above definitions and assumptions imply that unbiased assessment of interaction requires no unmeasured confounders of the relationship between both exposures and the outcome. In contrast, assessment of effect measure modification requires only no unmeasured confounders of the relationship between the primary exposure and outcome.

The methods presented in this paper pertain to the assessment of interaction using marginal structural models. Such methods are necessary when both exposures are potentially subject to time-varying confounding affected by prior exposure, which can occur in both chronic and infectious disease epidemiology.710 If effect measure modification of a time-varying exposure by a time-fixed secondary covariate is of interest and that exposure is subject to time-varying confounding affected by prior exposure, then a marginal structural model is needed. This model can be a standard marginal structural model with a single set of exposure weights, and a product term between the exposure and the potential time-fixed effect measure modifier can be employed. However, if effect measure modification of a time-varying exposure by a time-varying covariate is of interest and that exposure is subject to time-varying confounding affected by prior exposure, then methods such as g-estimation of structural nested models,30 history-adjusted marginal structural models,31 or dynamic marginal structural models32 are needed.

Important to note is that a standard marginal structural model can also be considered a joint marginal structural model, with censoring playing the role of the second exposure. However, typically we are interested only in the effect of the exposure while precluding the censoring. Therefore, rather than estimate the entire joint distribution for the exposure and censoring, we estimate the effect of the exposure with censoring set to never.

In conclusion, estimation of joint effects is frequently of interest in epidemiologic research. This paper describes and demonstrates joint marginal structural Cox proportional hazards models in the context of time-varying exposures potentially subject to time-varying confounding affected by prior exposure, with the aim to encourage the use of these valuable techniques.

Supplementary Material

eAppendix

Acknowledgments

We thank Jacquie Astemborski for assistance with the ALIVE data and Petra Sander and Deborah Anderson for editorial assistance, as well as the ALIVE study staff and participants.

Funding: This research was supported by National Institutes of Health grants R01-AA-01759, R01-DA-04334, R01-DA-12568.

References

  • 1.Rothman KJ, Greenland S, Lash TL. Modern Epidemiology. 3. Philadelphia, PA: Lippincott Williams & Wilkins; 2008. [Google Scholar]
  • 2.VanderWeele TJ. On the distinction between interaction and effect modification. Epidemiology. 2009;20(6):863–71. doi: 10.1097/EDE.0b013e3181ba333c. [DOI] [PubMed] [Google Scholar]
  • 3.Hernán MA, Brumback B, Robins JM. Marginal structural models to estimate the joint causal effect of non-randomized treatments. JASA. 2001;96:440–8. [Google Scholar]
  • 4.Tsiatis AA, Davidian M. An overview of joint modeling of longitudinal and time-to-event data. Statistica Sinica. 2004;14:793–818. [Google Scholar]
  • 5.Robins JM, Hernán MA, Brumback B. Marginal structural models and causal inference in epidemiology. Epidemiology. 2000;11:550–60. doi: 10.1097/00001648-200009000-00011. [DOI] [PubMed] [Google Scholar]
  • 6.Hernán MA, Brumback B, Robins JM. Marginal structural models to estimate the causal effect of zidovudine on the survival of HIV-positive men. Epidemiology. 2000;11(5):561–70. doi: 10.1097/00001648-200009000-00012. [DOI] [PubMed] [Google Scholar]
  • 7.Nelson KE, Galai N, Safaeian M, Strathdee SA, Celentano DD, Vlahov D. Temporal trends in the incidence of human immunodeficiency virus infection and risk behavior among injection drug users in Baltimore, Maryland, 1988–1998. Am J Epidemiol. 2002;156(7):641–53. doi: 10.1093/aje/kwf086. [DOI] [PubMed] [Google Scholar]
  • 8.Mehta SH, Galai N, Astemborski J, et al. HIV incidence among injection drug users in Baltimore, Maryland (1988–2004) J Acquir Immune Defic Syndr. 2006;43(3):368–72. doi: 10.1097/01.qai.0000243050.27580.1a. [DOI] [PubMed] [Google Scholar]
  • 9.Plankey MW, Ostrow DG, Stall R, et al. The relationship between methamphetamine and popper use and risk of HIV seroconversion in the multicenter AIDS cohort study. J Acquir Immune Defic Syndr. 2007;45(1):85–92. doi: 10.1097/QAI.0b013e3180417c99. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Taubman SL, Robins JM, Mittleman MA, Hernán MA. Intervening on risk factors for coronary heart disease: an application of the parametric g-formula. Int J Epidemiol. 2009;38(6):1599–611. doi: 10.1093/ije/dyp192. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Cole SR, Hernán MA, Robins JM, et al. Effect of highly active antiretroviral therapy on time to acquired immunodeficiency syndrome or death using marginal structural models. Am J Epidemiol. 2003;158(7):687–94. doi: 10.1093/aje/kwg206. [DOI] [PubMed] [Google Scholar]
  • 12.Bodnar LM, Davidian M, Siega-Riz AM, Tsiatis AA. Marginal structural models for analyzing causal effects of time-dependent treatments: an application in perinatal epidemiology. Am J Epidemiol. 2004;159(10):926–34. doi: 10.1093/aje/kwh131. [DOI] [PubMed] [Google Scholar]
  • 13.Lopez-Gatell H, Cole SR, Hessol NA, et al. Effect of tuberculosis on the survival of women infected with human immunodeficiency virus. Am J Epidemiol. 2007;165(10):1134–42. doi: 10.1093/aje/kwk116. [DOI] [PubMed] [Google Scholar]
  • 14.Cook NR, Cole SR, Hennekens CH. Use of a marginal structural model to determine the effect of aspirin on cardiovascular mortality in the Physicians’ Health Study. Am J Epidemiol. 2002;155(11):1045–53. doi: 10.1093/aje/155.11.1045. [DOI] [PubMed] [Google Scholar]
  • 15.Choi HK, Hernán MA, Seeger JD, Robins JM, Wolfe F. Methotrexate and mortality in patients with rheumatoid arthritis: a prospective study. Lancet. 2002;359(9313):1173–7. doi: 10.1016/S0140-6736(02)08213-2. [DOI] [PubMed] [Google Scholar]
  • 16.Zhang Y, Thamer M, Cotter D, Kaufman J, Hernán MA. Estimated effect of epoetin dosage on survival among elderly hemodialysis patients in the United States. Clin J Am Soc Nephrol. 2009;4(3):638–44. doi: 10.2215/CJN.05071008. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Nandi A, Glass TA, Cole SR, et al. Neighborhood poverty and injection cessation in a sample of injection drug users. Am J Epidemiol. 2010;171(4):391–8. doi: 10.1093/aje/kwp416. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Yu AP, Yu YF, Nichol MB. Estimating the effect of medication adherence on health outcomes among patients with type 2 diabetes-an application of marginal structural models. Value Health. 2010;13(8):1038–45. doi: 10.1111/j.1524-4733.2010.00787.x. [DOI] [PubMed] [Google Scholar]
  • 19.Howe CJ, Cole SR, Ostrow DG, Mehta SH, Kirk GD. A prospective study of alcohol consumption and HIV acquisition among injection drug users. AIDS. 2011;25(2):221–8. doi: 10.1097/QAD.0b013e328340fee2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Vlahov D, Anthony J, Muñoz A, et al. The ALIVE Study, a longitudinal study of HIV-1 infection in intravenous drug users: description of methods. NIDA Res Monogr. 1991;109:75–100. [PubMed] [Google Scholar]
  • 21.Howe CJ, Cole SR, Westreich DJ, Greenland S, Napravnik S, Eron JJ., Jr Splines for Trend Analysis and Continuous Confounder Control [Research Letter] Epidemiology. 2011;22(6):874–875. doi: 10.1097/EDE.0b013e31823029dd. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Li R, Chambless L. Test for additive interaction in proportional hazards models. Ann Epidemiol. 2007;17(3):227–36. doi: 10.1016/j.annepidem.2006.10.009. [DOI] [PubMed] [Google Scholar]
  • 23.Baliunas D, Rehm J, Irving H, Shuper P. Alcohol consumption and risk of incident human immunodeficiency virus infection: a meta-analysis. Int J Public Health. 2010;55(3):159–66. doi: 10.1007/s00038-009-0095-x. [DOI] [PubMed] [Google Scholar]
  • 24.Hernán MA. The hazards of hazard ratios [Commentary] Epidemiology. 2010;21(1):13–5. doi: 10.1097/EDE.0b013e3181c1ea43. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Cole SR, Hernán MA. Fallibility in estimating direct effects. Int J Epidemiol. 2002;31(1):163–5. doi: 10.1093/ije/31.1.163. [DOI] [PubMed] [Google Scholar]
  • 26.Hernán MA, Hernandez-Diaz S, Robins JM. A structural approach to selection bias. Epidemiology. 2004;15(5):615–25. doi: 10.1097/01.ede.0000135174.63482.43. [DOI] [PubMed] [Google Scholar]
  • 27.Robins J. A graphical approach to the identification and estimation of causal parameters in mortality studies with sustained exposure periods. J Chronic Dis. 1987;40 (Suppl 2):139S–161S. doi: 10.1016/s0021-9681(87)80018-8. [DOI] [PubMed] [Google Scholar]
  • 28.Cole SR, Hernán MA. Constructing inverse probability weights for marginal structural models. Am J Epidemiol. 2008;168(6):656–64. doi: 10.1093/aje/kwn164. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Howe CJ, Cole SR, Chmiel JS, Munoz A. Limitation of inverse probability-of-censoring weights in estimating survival in the presence of strong selection bias. Am J Epidemiol. 2011;173(5):569–77. doi: 10.1093/aje/kwq385. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Robins JM, Andersen PK, Keiding N. Structural nested failure time models. Survival Analysis. In: Armitage P, Colton T, editors. The Encyclopedia of Biostatistics. 2. Chichester, UK: John Wiley & Sons; 1998. pp. 4372–4389. [Google Scholar]
  • 31.Petersen ML, Deeks SG, Martin JN, van der Laan MJ. History-adjusted marginal structural models for estimating time-varying effect modification. Am J Epidemiol. 2007;166(9):985–93. doi: 10.1093/aje/kwm232. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Cain LE, Robins JM, Lanoy E, Logan R, Costagliola D, Hernán MA. When to start treatment? a systematic approach to the comparison of dynamic regimes using observational data. International Journal of Biostatistics. 2010;6(2):Article 18. doi: 10.2202/1557-4679.1212. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

eAppendix

RESOURCES