The DOI matches its Crossref record; 2 of the 2 references it cites were found in a registry or an index.
SAS Macro for Causal Mediation Analysis with Survival Data
Abstract
To the Editor: Mediation analysis investigates the mechanisms that underlie an observed relation between an exposure variable and an outcome variable and examines the role of an intermediate factor, the mediator. Such an analysis can help explain biological and social mechanisms and inform policy making. In 2013, we released a SAS (SAS Institute Inc, Cary, NC) macro for causal mediation analysis for binary, continuous and count outcomes, and binary and continuous mediators,1 implementing the regression-based results of VanderWeele and Vansteeland,2,3 and Valeri and VanderWeele1 for natural direct and indirect effects.4–6 Here, we have extended the SAS macro for mediation analysis to survival outcomes. The methods for causal mediation analysis yield valid inferences for natural direct and natural indirect effects under the assumptions that the measured covariates control for confounding of the (1) exposure–outcome, (2) mediator–outcome, and (3) exposure–mediator relations, and (4) that none of the mediator–outcome confounders are affected by the exposure. The methods also require correct specification of the model for the outcome given exposure, mediator and confounders, as well as correct specification of the model for the mediator given the exposure and confounders. Unlike traditional approaches to mediation, the causal inference methods allow for effect decomposition even in the presence of exposure–mediator interaction. Lange and Hansen7 and VanderWeele8 extended these approaches to survival outcomes and continuous mediator. We show that estimators of direct and indirect causal effects derived in Valeri and VanderWeele1 for the case of binary outcome and binary or continuous mediator are valid with a failure time outcome (see eAppendix, https://links.lww.com/EDE/A877, sections 1 and 4 and VanderWeele6). We extend the SAS statistical software in Valeri and VanderWeele1 to allow for survival outcomes modeled under the Cox proportional hazard or accelerated failure time models (AFT) assuming exponential or Weibull distributions. The causal effects are estimated on the hazard ratio scale if the Cox proportional hazard is employed and on the mean survival ratio scale if the AFT model is chosen. The Cox proportional hazards model mediation results require a rare outcome at the end of follow-up to be valid; the AFT model does not require this assumption. See eAppendix (https://links.lww.com/EDE/A877) for more details. In eAppendix (https://links.lww.com/EDE/A877) section 2, we provide the macro user manual, and in section 3, we provide an example of mediation analysis with survival data of colorectal cancer patients from Surveillance, Epidemiology, and End Results Program carried out using the macro.9 We highlight that the present example is for illustration purposes only, as several of the identification conditions are not met. We might, for example, want to investigate whether socio-economic position, measured by percentage of people living below the poverty line in the county of residence, affects survival of colorectal cancer patients and whether stage at diagnosis may mediate some of this effect. In this example, stage at diagnosis may be a potential mediator of the relation between residing in poor counties and the survival outcome. Here, we briefly present the results of the analyses. An AFT regression assuming exponential distribution is run for survival among colorectal cancer patients on the exposure (county percent below poverty line), adjusting for the mediator (stage at diagnosis: advanced versus non-advanced) and potential confounders (age at diagnosis, year at diagnosis, race-ethnicity, cancer registry). A logistic regression model for stage at diagnosis on the exposure adjusting for potential confounders is fitted. The Table displays the output of the estimated direct and indirect effects at the mean level of the covariates. The analysis, presented in full in the eAppendix (https://links.lww.com/EDE/A877) indicates a negative significant effect of poverty on survival. A positive, significant interaction between stage at diagnosis and poverty is detected. The socio-economic position measure displays a positive and significant association with stage at diagnosis. We find that the mean survival time of individuals living in counties with 30% of the population living below the poverty level is 11% lower than that of individuals living in counties that have no people living below the poverty line. On the mean survival-time ratio scale, the direct effect is 0.94 (95% confidence interval = 0.87–0.99) and the indirect effect is 0.95 (95% confidence interval = 0.93–0.97). Stage at diagnosis is estimated to mediate 42% of the effect of poverty on survival.TABLE: Output of Estimated Indirect, Indirect, Total Effects and Proportion Mediated from the SAS MacroTo the best of our knowledge, this is the first automated macro software for mediation for survival data allowing for exposure–mediator interactions. W
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Valeri, L., & VanderWeele, T. J. (2013) · Psychological Methods · doi:10.1037/a0031034 · Cited by 2,132
Self-citationOdds Ratios for Mediation Analysis for a Dichotomous Outcome
VanderWeele, T. J., & Vansteelandt, S. (2010) · American Journal of Epidemiology · doi:10.1093/aje/kwq332 · Cited by 809
Self-citation
Cited by
Association of Religious Service Attendance With Mortality Among Women
Li, S., Stampfer, M. J., Williams, D. R., & VanderWeele, T. J. (2016) · JAMA Internal Medicine · doi:10.1001/jamainternmed.2016.1615 · Cited by 367
Self-citationMediation analysis methods used in observational research: a scoping review and recommendations
Rijnhart, J. J. M., Lamp, S. J., Valente, M. J., MacKinnon, D. P., Twisk, J. W. R., & Heymans, M. W. (2021) · BMC Medical Research Methodology · doi:10.1186/s12874-021-01426-3 · Cited by 345
Taqueti, V. R., Shaw, L. J., Cook, N. R., Murthy, V. L., Shah, N. R., Foster, C. R., Hainer, J., Blankstein, R., Dorbala, S., & Di Carli, M. F. (2017) · Circulation · doi:10.1161/circulationaha.116.023266 · Cited by 299
Mediators of the Effects of Canagliflozin on Heart Failure in Patients With Type 2 Diabetes
Li, J., Woodward, M., Perkovic, V., Figtree, G. A., Heerspink, H. J. L., Mahaffey, K. W., de Zeeuw, D., Vercruysse, F., Shaw, W., Matthews, D. R., et al. (2020) · JACC: Heart Failure · doi:10.1016/j.jchf.2019.08.004 · Cited by 144
Mediators of the effects of canagliflozin on kidney protection in patients with type 2 diabetes
Li, J., Neal, B., Perkovic, V., de Zeeuw, D., Neuen, B. L., Arnott, C., Simpson, R., Oh, R., Mahaffey, K. W., & Heerspink, H. J. L. (2020) · Kidney International · doi:10.1016/j.kint.2020.04.051 · Cited by 130
Metadata
- Authors
- Valeri, L., & VanderWeele, T. J.
- Venue
- Epidemiology
- Published
- 2015-03
- Volume
- 26
- Issue
- 2
- Pages
- e23-e24
- ISSN
- 1044-3983 (ISSN-L)
- OpenAlex
- W2082505416
- Cited by
- 226
- References
- 2
- FWCI
- 10.22
- Type
- journal article
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: SAS Macro for Causal Mediation Analysis with Survival Data. https://app.cochat.ai/papers/10.1097/ede.0000000000000253
- The paper
- Valeri, L., & VanderWeele, T. J. (2015). SAS Macro for Causal Mediation Analysis with Survival Data. Epidemiology. https://doi.org/10.1097/ede.0000000000000253
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.