Sampling for computational efficiency when conducting analyses in big data
A challenge to research in big data is the inherent computational intensity of analyses, particularly when using rigorous methods to address biases. We demonstrate the use of sampling methods in big data to estimate parameters using fewer resources. Our motivating question was whether lung cancer incidence differs by baseline HIV status, using a cohort of nearly 30 million Medicaid beneficiaries. We targeted three parameters (with listed estimator): incidence rate ratio (IRR, Poisson model), hazard ratio (HR, Cox model), and risk ratio (RR, Kaplan-Meier). We controlled for confounders using inverse probability weighting. We ran analyses using the full sample and several sampling schemes: divide-and-recombine (10, 20, 50 samples), sub-cohort, and case-cohort. We compared point estimates, standard errors, computation time, and memory used. We observed 1113 incident lung cancer diagnoses among 180,980 beneficiaries with HIV and 33,106 diagnoses among 29,179,940 beneficiaries without HIV. Findings were similar across target parameters. The sub-cohort and case-cohort approaches had estimates closer to the full sample and were faster and less memory-intensive than divide-and-recombine, especially when estimating the RR. Including non-sampled cases in the case-cohort resulted in increases in computation time and memory relative to the sub-cohort approach.
Authors
- Eryka Wentz (ORCID: https://orcid.org/0000-0002-9056-0436)
- Bryan Lau (ORCID: https://orcid.org/0000-0002-2355-612X)
- Karine Yenokyan (ORCID: https://orcid.org/0000-0001-6835-9405)
- Corinne E. Joshu (ORCID: https://orcid.org/0000-0002-5100-172X)
- Jacqueline E. Rudolph (ORCID: https://orcid.org/0000-0001-7177-1847)
- Keri L. Calkins (ORCID: https://orcid.org/0000-0003-0003-9397)
- Yiyi Zhou (ORCID: https://orcid.org/0009-0000-7553-0928)
- Xiaoqiang Xu (ORCID: https://orcid.org/0000-0003-1319-1646)
Institutions
- Johns Hopkins University (US)
- Johns Hopkins Medicine (US)
- Mathematica Policy Research (US)
Publication Details
- Journal
- American Journal of Epidemiology
- Published
- 2025-12-04
- DOI
- https://doi.org/10.1093/aje/kwaf268
- Primary Topic
- Data-Driven Disease Surveillance
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Johns Hopkins University
- National Institutes of Health
- Center for AIDS Research, University of Washington
- National Institute on Aging
- National Heart, Lung, and Blood Institute
- National Institute on Drug Abuse
- National Cancer Institute
- National Institute of General Medical Sciences
- National Institute of Allergy and Infectious Diseases
- National Institute of Diabetes and Digestive and Kidney Diseases
- National Institute on Minority Health and Health Disparities