使用分类阈值评估预测模型时的扩展样本量计算
Extended sample size calculations for evaluation of prediction models using a threshold for classification
AI总结:
本文扩展了预测模型外部评估的样本量计算方法,提出闭式公式以精确估计基于分类阈值的准确率、灵敏度、特异度、PPV、NPV和F1-score,并提供Python、R和Stata实现,所需样本量通常低于校准斜率估计要求。
摘要:
在评估个体化风险预测模型的性能时,样本量需要足够大,以精确估计所关注的性能指标。当前的样本量指导基于精确估计校准度(calibration)、区分度(discrimination)和净获益(net benefit),这应当是计算最小所需样本量的第一阶段。然而,当使用具有临床重要性的阈值进行分类时,也可以使用其他性能指标。我们扩展了此前发表的指导,以精确估计基于阈值的性能指标。我们开发了闭式解,用于在具有二分类结局的预测模型的外部评估研究中,估计精确估计准确率(accuracy)、特异度(specificity)、灵敏度(sensitivity)、阳性预测值(PPV)、阴性预测值(NPV)和 F1-score 所需的最小样本量。该方法要求用户预先指定目标标准误以及每个性能指标的期望值。我们描述了样本量公式的推导方式,并通过一个示例演示其使用。同时考虑了向时间-事件(time-to-event)结局的扩展。在我们的示例中,所需的最小样本量低于精确估计校准斜率(calibration slope)所需的样本量,我们预计大多数情况下都是如此。我们的公式以及相应的 Python 代码和更新后的 R 与 Stata 命令(pmvalsampsize),使研究人员能够计算在外部评估研究中精确估计基于阈值的性能指标所需的最小样本量。这些标准应与先前发表的标准一起使用,以精确估计校准度、区分度和净获益。
英文摘要:
When evaluating the performance of a model for individualised risk prediction, the sample size needs to be large enough to precisely estimate the performance measures of interest. Current sample size guidance is based on precisely estimating calibration, discrimination, and net benefit, which should be the first stage of calculating the minimum required sample size. However, when a clinically important threshold is used for classification, other performance measures can also be used. We extend the previously published guidance to precisely estimate threshold-based performance measures. We have developed closed-form solutions to estimate the sample size required to target sufficiently precise estimates of accuracy, specificity, sensitivity, PPV, NPV, and F1-score in an external evaluation study of a prediction model with a binary outcome. This approach requires the user to pre-specify the target standard error and the expected value for each performance measure. We describe how the sample size formulae were derived and demonstrate their use in an example. Extension to time-to-event outcomes is also considered. In our examples, the minimum sample size required was lower than that required to precisely estimate the calibration slope, and we expect this would most often be the case. Our formulae, along with corresponding Python code and updated R and Stata commands (pmvalsampsize), enable researchers to calculate the minimum sample size needed to precisely estimate threshold-based performance measures in an external evaluation study. These criteria should be used alongside previously published criteria to precisely estimate the calibration, discrimination, and net-benefit.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。