Introduction
In clinical research, the Cox proportional hazards model is the gold standard for comparing survival between groups while controlling for confounding variables. However, hazard ratios alone do not provide a visual representation of survival over time. Researchers often require "adjusted" survival curves to better understand clinical outcomes. Existing tools for generating these curves frequently struggle with two major hurdles: extreme computational slowness when handling large datasets and an inability to account for "left truncation"—a scenario where subjects enter a study after the initial risk period has begun, common in retrospective registry-based research.
The %adjsurvlt() Macro
To address these limitations, researchers developed the %adjsurvlt() SAS macro. This tool introduces several technical innovations to improve efficiency and statistical accuracy. By replacing traditional row-by-row iterations with matrix operations (vectorization) and utilizing only distinct covariate vectors (dimensionality reduction), the macro significantly reduces the computational load. Furthermore, it incorporates Monte Carlo simulations to provide robust 95% confidence bands and simultaneous p-values, ensuring that observed differences are statistically significant.
Computational Performance
The efficiency gains of %adjsurvlt() are substantial. In stress tests using simulated datasets, the macro outperformed previous industry standards by orders of magnitude. For instance, while older macros might take days to process large, highly stratified datasets, %adjsurvlt() can complete the same tasks in minutes.
As shown in the performance data, even with 10,000 subjects and multiple covariates, the macro processes results in under a minute. In larger simulations of 20,000 subjects, the macro completed in approximately 4 minutes and 6 seconds, compared to over 120 hours for previous methods—a speedup of over 1,000 times.
Clinical Application: CIBMTR Registry Analysis
The macro's utility was demonstrated using data from the Center for International Blood and Marrow Transplant Research (CIBMTR). The study compared post-transplant survival between 96 patients with myeloproliferative neoplasms in blast phase (MPN-BP) and 2,825 patients with de novo acute myeloid leukemia (AML).
By adjusting for variables such as age, sex, and donor type, the macro revealed a statistically significant survival difference (p = 0.0261). The resulting visualization clearly illustrates the survival gap between the two cohorts over a 60-month period, providing a more nuanced view than a simple hazard ratio. This analysis highlights how correcting for entry bias (left truncation) and adjusting for confounders can lead to more accurate clinical insights.
Conclusion
The %adjsurvlt() macro represents a significant advancement in survival analysis software. By enabling rapid, accurate, and adjusted survival modeling—even in the presence of left truncation—it allows researchers to perform complex analyses on massive registry datasets that were previously computationally prohibitive. Future work aims to extend these capabilities to competing risk models and multi-group comparisons.
Summary updated