Scalable Matrix-Free Algorithms for Variance Estimation of Survey-Weighted Survival Curves
Abstract
Variance estimation for survey-weighted survival curves using existing statistical software can require substantial time and memory, particularly when the number of distinct event times is large.
We developed two matrix-free algorithms that compute the conventional Taylor linearization variance estimator without constructing the full event-time covariance matrix: one accumulates individual-level linearization contributions, while the other directly updates aggregated contributions at the primary sampling unit (PSU) level.
We evaluated numerical accuracy, runtime, and peak memory usage through an application to the National Health and Aging Trends Study (NHATS) and simulation experiments.
Both approaches yielded survival and variance estimates identical to the R implementation.
In the 7-year follow-up analysis of 7,608 NHATS participants with 2,879 deaths, computation time decreased from approximately 26 minutes to less than 3 seconds with the individual-level approach and less than 1 second with the PSU-level approach.
Simulations with sample sizes of 1,000 to 10,000 showed similar results, with more pronounced computational advantages as sample size and the number of distinct event times increased.
In more demanding settings, the existing implementation failed due to memory exhaustion, whereas both proposed approaches completed successfully.
Matrix-free computation can improve the efficiency and scalability of design-based variance estimation while preserving numerical accuracy.