Study Design and Population
We used data from the DCS cohort. This is a prospective and dynamic cohort study of people with T2D and is described extensively elsewhere [32]. Clinical characteristics, anthropometric measurements, and fasting blood samples were collected during routine annual examinations. Inclusion criteria were primary diabetes treatment and confirmed T2D. We studied a subsample of participants with adequate biobank serum samples for Mg2+ measurement (n=4,400), with vital status and annual medication registration. We excluded participants with missing T2D diagnosis, those with a revised type of diabetes and those where the blood sampling was done at inclusion in DCS without preceding medication information, resulting in a sample of 4,037 participants (Figure 1). Due to the absence of follow-up visits for 42 cases and therefore missing information on CVD, the analysis of fatal and non-fatal CVD was performed in a sample of 3,995 participants.
Ethical clearance for the DCS cohort including biobanking was provided by the Medical Ethical Review Committee of the VU University Medical Center, Amsterdam and written informed consent was obtained from each participant. This study is reported according to the RECORD (REporting of studies Conducted using Observational Routinely-collected health Data) and AGReMA (A Guideline for Reporting Mediation Analyses) statements (supplementary A and B) [33, 34]
Exposure
During the annual visits, participants were requested to bring their current medication for registration. PPI use is defined as the use or non-use of any type of PPI (Anatomical Therapeutic Chemical classification (ATC)-codes A02BC01-A02BC05) at the visit preceding the year of biobanking (T0) and/or the visit during which biobanking was performed (T1) (Figure 2).
Mediator
Fasting serum samples were collected once between 2008-2014 (T1) and frozen at -80 °C. Mg2+ was measured in 2019 at the department of Laboratory Medicine of the Radboud UMC, the Netherlands, using calibrated standardised methods (coefficient of variation of 1.98%, Cobas C8000; Roche Diagnostics, Risch-Rotkreuz, Switzerland). The reference range of serum Mg2+ is 0.70-1.05 mmol/l and clinical hypomagnesaemia is defined as a Mg2+ value of <0.70 mmol/l.
Outcomes
The primary outcome was all-cause mortality and the secondary outcome was a composite of combined fatal and non-fatal CVD, with follow-up until January 2020 and April 2018, respectively. Vital status was verified every six months in the municipal registry and cause of death was determined using general practitioners’ records and electronic patient registration at regional hospitals. Cause of death and morbidity was coded using the International Classification of Diseases (ICD)-9 codes (390-459 and 798). The composite outcome of CVD included myocardial infarction, angina pectoris, HF, stroke, transient ischemic attack, and peripheral arterial disease and was registered based on self-reported events. Most of the self-reported CVD has been verified by medical records of the hospitals (sensitivity 86%, specificity 90%) [32].
Demographic characteristics and confounding variables
Information on demographic characteristics and confounding variables were collected during annual visits. We adjusted our analyses for potential confounders of the associations between 1) PPI-Mg2+, 2) Mg2+-clinical outcomes, and/or 3) PPI-clinical outcomes. These variables were: age, sex, smoking, body mass index (BMI), systolic blood pressure (SBP), Haemoglobin A1c (HbA1c), estimated glomerular filtration rate (eGFR) and low-density lipoprotein (LDL). HbA1c, fasting glucose, lipid levels and eGFR were determined based on fasting glucose blood samples drawn annually [32]. We also adjusted for the use of anticoagulant therapy, non-steroidal anti-inflammatory drugs (NSAIDs) or systemic corticosteroids, since these medications are often prescribed together with PPIs and may affect both Mg2+ and clinical outcomes. For the analyses we included potentially confounding variables measured at the same time as PPI use (T0).
Statistical analyses
Baseline characteristics are presented for the total population and stratified by PPI use. Continuous variables are displayed as means and standard deviations (SD), or as medians and interquartile ranges (IQR) and for categorical variables as numbers and percentages. Due to the non-linear mediator-outcome association, Mg2+ was dichotomized by combining the middle and highest tertiles (Mg2+ >0.77 mmol/l, reference category) and comparing it to the lowest tertile (Mg2+ ≤0.77 mmol/l).
The following confounding variables were included a priori in the analyses: age, sex, prevalent CVD, BMI, SBP, smoking, HbA1c, eGFR and LDL (model 1), with addition of anticoagulant therapy, use of NSAIDs, systemic corticosteroids use, antihypertensive drugs and insulin dependence (model 2). We performed a stratified analysis for the presence of CVD at baseline for the primary endpoint. Effect modification by baseline CVD and sex was tested by adding interaction terms to the models.
Mediation analyses
We performed causal mediation analyses based on the potential outcome framework (Figure 3). [35]. We used logistic regression to estimate the association between PPI use (exposure) and serum Mg2+ (mediator) (i.e., the a-path). We used accelerated failure time (AFT) models to estimate the associations between serum Mg2+ and mortality and CVD (i.e., the b paths), and the associations between PPI use and mortality and CVD (i.e., c’ paths) [36, 37]. To assess possible exposure-mediator interaction, we added PPI-by-magnesium interaction terms to the AFT models. The most suitable error distributions for the AFT models were determined by comparing the Akaike Information Criterion (AIC) across multiple AFT models with different error distributions, where the smallest AIC indicated the best ‘fit’ [36, 38]. The no (unmeasured) confounding assumptions are addressed in Supplementary C. Based on the equations described in VanderWeele (2015) we estimated the natural indirect effect (NIE), natural direct effect (NDE), and total effect (TE) with corresponding 95% percentile bootstrap confidence intervals (CI) based on 1000 bootstrap resamples [35, 39]. The NDE, NIE and TE are presented as survival time ratios (STR). The proportion mediated was calculated as ln(NIE)/ln(TE).
Missing values
There were no missing data in the exposure or mediator variables and mortality registration was complete. Information on missing confounding values are presented in Supplementary D. Because of the low percentage of missing values (<5.0%, 194 cases) we performed a single set of imputations. All variables included in the analytic models were used as predictors for predictive mean matching (10 iterations).
Sensitivity analyses
Sensitivity analyses were performed to investigate the robustness of results. Complete case analysis and analyses using different cut-offs of the mediator were performed (hypo versus normomagnesemia and median Mg2+ value as the cut-off). Also, we excluded those participants who changed from PPI category during the preceding year (159/1079) and participants with baseline CVD. To explore the influence of competing risk within the analyses of CVD, we compared the effect estimates for the fully adjusted separate mediator-outcome and exposure-outcome associations, based on Cox-regression and competing risk regression, with non-cardiovascular mortality as a competing risk. Due to the not necessarily atherosclerotic origin of HF and AF (ICD-9 427.3-427.33), we also performed mediation analyses for HF and AF as separate outcome variables. Since it is suggested that diuretics can have profound Mg2+ lowering effects as well [40, 41], we adjusted for diuretics, apart from the pooled antihypertensive medication confounding variable.
All analyses were performed in Stata SE 14.1 (StataCorp., College Station, TX), after data cleaning and preparation in SPSS Statistics 24.0 (IBM Corp., Armonk, NY). All results are presented as effect estimates with 95%CI.