Garibay-Treviño David U, Jalal Hawre, Alarid-Escudero Fernando
School of Epidemiology and Public Health, Faculty of Medicine, University of Ottawa, ON, Canada.
Department of Health Policy, Stanford University School of Medicine, Stanford, CA, USA.
Med Decis Making. 2025 Feb;45(2):205-213. doi: 10.1177/0272989X241308768. Epub 2025 Jan 5.
The nonparametric sampling method is generic and can sample times to an event from any discrete (or discretizable) hazard without requiring any parametric assumption.The method is showcased with 5 commonly used distributions in discrete-event simulation models.The method produced very similar expected times to events, as well as their probability distribution, compared with analytical results.We provide a multivariate categorical sampling function for R and Python programming languages to sample times to events from processes with different hazards simultaneously.
非参数抽样方法是通用的,它可以从任何离散(或可离散化)风险中对事件发生时间进行抽样,而无需任何参数假设。该方法在离散事件模拟模型中通过5种常用分布进行了展示。与分析结果相比,该方法得出的事件预期时间及其概率分布非常相似。我们为R和Python编程语言提供了一个多元分类抽样函数,以便从具有不同风险的过程中同时对事件发生时间进行抽样。