Skip to main content
medRxiv
  • Home
  • About
  • Submit
  • ALERTS / RSS
Advanced Search

A Fast Nonparametric Sampling (NPS) Method for Time-to-Event in Individual-Level Simulation Models

View ORCID ProfileDavid U. Garibay-Treviño, View ORCID ProfileHawre Jalal, View ORCID ProfileFernando Alarid-Escudero
doi: https://doi.org/10.1101/2024.04.05.24305356
David U. Garibay-Treviño
1University of Ottawa, Ottawa, ON, CA
M.P.P.
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for David U. Garibay-Treviño
  • For correspondence: dgari039{at}uOttawa.ca
Hawre Jalal
1University of Ottawa, Ottawa, ON, CA
Ph.D.
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Hawre Jalal
Fernando Alarid-Escudero
2Department of Health Policy, Stanford University School of Medicine, Stanford, CA, USA
3Center for Health Policy, Freeman Spogli Institute, Stanford University, Stanford, CA, USA
Ph.D.
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Fernando Alarid-Escudero
  • Abstract
  • Full Text
  • Info/History
  • Metrics
  • Supplementary material
  • Data/Code
  • Preview PDF
Loading

Abstract

Purpose Individual-level simulation models often require sampling times to events, however efficient parametric distributions for many processes may often not exist. For example, time to death from life tables cannot be accurately sampled from existing parametric distributions. We propose an efficient nonparametric method to sample times to events that does not require any parametric assumption on the hazards.

Methods We developed a nonparametric sampling (NPS) approach that simultaneously draws multiple time-to-event samples from a categorical distribution. This approach can be applied to univariate and multivariate processes. We discretize the entire period into equal-length time intervals and then derived the interval-specific probabilities. The times to events can then be used directly in individual-level simulation models. We compared the accuracy of our approach in sampling time-to-events from common parametric distributions, including exponential, gamma, and Gompertz. In addition, we evaluated the method’s performance in sampling age to death from US life tables and sampling times to events from parametric baseline hazards with time-dependent covariates.

Results The NPS method estimated similar expected times to events from 1 million draws for the three parametric distributions, 100,000 draws for the homogenous cohort, 200,000 draws from the heterogeneous cohort, and 1 million draws for the parametric distributions with time-varying covariates, all in less than a second.

Conclusion Our method produces accurate and computationally efficient samples for time-to-events from hazards without requiring parametric assumptions.

Competing Interest Statement

The authors have declared no competing interest.

Funding Statement

Dr. Alarid-Escudero is supported by the grant U01CA253913, Dr. Jalal is supported by a Canada Research Chair, and Drs. Alarid-Escudero and Jalal are supported by the grant U01CA265750 from the National Cancer Institute (NCI) as part of the Cancer Intervention and Surveillance Modeling Network (CISNET)

Author Declarations

I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.

Yes

I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals.

Yes

I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).

Yes

I have followed all appropriate research reporting guidelines, such as any relevant EQUATOR Network research reporting checklist(s) and other pertinent material, if applicable.

Yes

Footnotes

  • The affiliation of the first author was updated. We also provided a more detailed and formal description on the use of the cumulative hazard function, H(t), for the proposed nonparametric sampling (NPS) method for times to events. We also included a more extensive benchmarking of the NPS method against other parametric sampling techniques. For example, we included the expected value and the average execution time of status quo parametric sampling methods for each parametric distribution mentioned in the manuscript (i.e., rexp, rgamma, and rlnorm) to sample times to events in R. To do so, we extended Table 1 to incorporate the results and mean execution time of status quo parametric sampling methods in R. Besides, we updated the Supplementary Materials. These contain the code to implement the proposed non parametric sampling apporach, and replicate all the examples using R and the first three examples using python. The code to replicate this examples and to generate the Supplementary material is publicly availble in a Github repository (https://github.com/DARTH-git/NPS_time_to_event).

Data Availability

The code and data used to generate all the examples, are available online using the data availability link.

https://github.com/DARTH-git/NPS_time_to_event

Copyright 
The copyright holder for this preprint is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. It is made available under a CC-BY-NC-ND 4.0 International license.
Back to top
PreviousNext
Posted October 21, 2024.
Download PDF

Supplementary Material

Data/Code
Email

Thank you for your interest in spreading the word about medRxiv.

NOTE: Your email address is requested solely to identify you as the sender of this article.

Enter multiple addresses on separate lines or separate them with commas.
A Fast Nonparametric Sampling (NPS) Method for Time-to-Event in Individual-Level Simulation Models
(Your Name) has forwarded a page to you from medRxiv
(Your Name) thought you would like to see this page from the medRxiv website.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Share
A Fast Nonparametric Sampling (NPS) Method for Time-to-Event in Individual-Level Simulation Models
David U. Garibay-Treviño, Hawre Jalal, Fernando Alarid-Escudero
medRxiv 2024.04.05.24305356; doi: https://doi.org/10.1101/2024.04.05.24305356
Twitter logo Facebook logo LinkedIn logo Mendeley logo
Citation Tools
A Fast Nonparametric Sampling (NPS) Method for Time-to-Event in Individual-Level Simulation Models
David U. Garibay-Treviño, Hawre Jalal, Fernando Alarid-Escudero
medRxiv 2024.04.05.24305356; doi: https://doi.org/10.1101/2024.04.05.24305356

Citation Manager Formats

  • BibTeX
  • Bookends
  • EasyBib
  • EndNote (tagged)
  • EndNote 8 (xml)
  • Medlars
  • Mendeley
  • Papers
  • RefWorks Tagged
  • Ref Manager
  • RIS
  • Zotero
  • Tweet Widget
  • Facebook Like
  • Google Plus One

Subject Area

  • Health Policy
Subject Areas
All Articles
  • Addiction Medicine (431)
  • Allergy and Immunology (757)
  • Anesthesia (221)
  • Cardiovascular Medicine (3298)
  • Dentistry and Oral Medicine (365)
  • Dermatology (280)
  • Emergency Medicine (479)
  • Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1173)
  • Epidemiology (13385)
  • Forensic Medicine (19)
  • Gastroenterology (899)
  • Genetic and Genomic Medicine (5158)
  • Geriatric Medicine (482)
  • Health Economics (783)
  • Health Informatics (3276)
  • Health Policy (1143)
  • Health Systems and Quality Improvement (1193)
  • Hematology (432)
  • HIV/AIDS (1019)
  • Infectious Diseases (except HIV/AIDS) (14638)
  • Intensive Care and Critical Care Medicine (913)
  • Medical Education (478)
  • Medical Ethics (127)
  • Nephrology (525)
  • Neurology (4930)
  • Nursing (262)
  • Nutrition (730)
  • Obstetrics and Gynecology (886)
  • Occupational and Environmental Health (795)
  • Oncology (2524)
  • Ophthalmology (728)
  • Orthopedics (282)
  • Otolaryngology (347)
  • Pain Medicine (323)
  • Palliative Medicine (90)
  • Pathology (544)
  • Pediatrics (1302)
  • Pharmacology and Therapeutics (551)
  • Primary Care Research (557)
  • Psychiatry and Clinical Psychology (4218)
  • Public and Global Health (7512)
  • Radiology and Imaging (1708)
  • Rehabilitation Medicine and Physical Therapy (1016)
  • Respiratory Medicine (980)
  • Rheumatology (480)
  • Sexual and Reproductive Health (498)
  • Sports Medicine (424)
  • Surgery (549)
  • Toxicology (72)
  • Transplantation (236)
  • Urology (205)