pmsims: Simulation-Based Sample Size Tools for Prediction Models

Provides a flexible, simulation-based toolkit for exploring how much data are needed to develop reliable prediction models. It works by repeatedly generating data, fitting models, and evaluating performance to show how sample size affects predictive accuracy, calibration, and overfitting. The package supports continuous, binary, and time-to-event outcomes and can be used with both regression-based modelling approaches and machine-learning methods. It is designed to help researchers plan studies, assess feasibility, and build more robust and generalisable models. The methods are described in Olaniran et al. (2026) <doi:10.1186/s12874-026-02935-9> and Shamsutdinova et al. (2026) <doi:10.48550/arXiv.2602.23507>.

Package details

AuthorEwan Carr [aut, cre] (ORCID: <https://orcid.org/0000-0002-1146-4922>), Gordon Forbes [aut] (ORCID: <https://orcid.org/0000-0001-8662-3636>), Ridwan Olaniran [aut] (ORCID: <https://orcid.org/0000-0001-7342-8639>), Diana Shamsutdinova [aut] (ORCID: <https://orcid.org/0000-0003-2434-3641>), Daniel Stahl [aut] (ORCID: <https://orcid.org/0000-0001-7987-6619>), Sarah Markham [aut] (ORCID: <https://orcid.org/0000-0002-8755-5935>), Felix Zimmer [aut] (ORCID: <https://orcid.org/0000-0002-8127-0007>)
MaintainerEwan Carr <ewan.carr@kcl.ac.uk>
LicenseGPL (>= 3)
Version1.1.1
URL https://docs.pmsims.com/  https://github.com/pmsims-package/pmsims 
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("pmsims")

Try the pmsims package in your browser

Any scripts or data that you put into this service are public.

pmsims documentation built on Nov. 15, 2026, 5:07 p.m.