arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.13709stat.ME
收藏

具有R包adsasi的自适应样本量模拟

Adaptive Sample Size Simulations with R package adsasi

Université Paris Cité(巴黎西岱大学);Assistance Publique - Hôpitaux de Paris(巴黎公立医院集团)

Skerdi Haviari

AI总结:

本文提出adsasi包,通过模拟先行方法解决自适应设计等复杂试验的样本量确定问题,提供可视化和统计推断功能。

摘要:

规划实证实验如临床试验或A/B测试需要确定样本量,许多有趣情况下没有闭式解(如因子或自适应设计)。adsasi是新的R包,允许在短计算时间内模拟先行的样本量计算。用户首先指定一个函数,该函数以样本量为参数,模拟实验并返回成功/失败布尔值。然后,adsasi_0d和adsasi_1d函数迭代调用该函数,逐步逼近具有名义成功率(功效)的样本量。adsasi_1d还能纯经验地绘制设计参数与样本量的关系。实现使用了修改过的概率单位回归(以成功/失败为因变量),受围绕目标大小进行的模拟启发,并提供标准误差,使用自定义分析的Hessian矩阵推导出的Cramér-Rao界。简单示例首先展示,结果在蒙特卡洛方差内与其闭式表达式一致,然后是不可解的例子(包括从现有医疗队列中进行的重采样)。adsasi有望通过使尺寸确定变得简单,促进有趣且高度复杂实验设计的资金和实施。

英文摘要:

Planning empirical experiments such as clinical trials or A/B tests requires sample size determination, which in many interesting cases has no closed-form solution (e.g. factorial or adaptive designs). adsasi is a new R package that enables simulations-first sample size calculations for any trial that can be simulated in short compute time. First, the user specifies as a function that takes a sample size as argument, simulates the experiment, and returns a boolean for success/failure. Then, adsasi functions adsasi_0d and adsasi_1d iteratively call it on different sample sizes and progressively home in on the one with nominal success rate (power), assuming that increasing sample size increases power. adsasi_1d can also draw, purely empirically, the relationship between a design parameter and sample size. The implementation uses a modified probit regression (with success/failure as the dependent variable), informed by simulations conducted around the target size, and provides standard errors at each stage using the Cramér-Rao bound derived from a custom analytical Hessian matrix. Simple examples are first presented, yielding results within Monte Carlo variance of their closed-form expressions, then intractable ones (including bootstrapping from an existing medical cohort). adsasi will hopefully facilitate the funding and conduct of interesting, highly complex experimental designs by making their sizing straightforward.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑