1- # pmsims: Simulation-based Sample Size Tools for Prediction Models
21
3- ** pmsims** is an R package for estimating how much data are needed to develop
4- reliable and generalisable prediction models. It uses a ** simulation-based
5- learning curve** approach to quantify how model performance improves with
6- increasing sample size, supporting principled study planning and feasibility
7- assessment.
2+ <!-- README.md is generated from README.Rmd. Please edit that file -->
83
9- The package is fully model-agnostic: users can define how data are generated,
10- how models are fitted, and how predictive performance is measured. It currently
11- supports regression-based prediction models with continuous, binary, and
12- time-to-event outcomes.
4+ # pmsims: Simulation-based Sample Size Tools for Prediction Models <a href =" https://pmsims-package.github.io/pmsims/ " ><img src =" man/figures/logo.png " align =" right " height =" 138 " /></a >
135
14- Developed at [ King’s College London] ( https://www.kcl.ac.uk/ ) (Department of
15- Biostatistics & Health Informatics) with input from researchers, clinicians,
16- and patient partners. See the [ pmsims project
17- site] ( https://pmsims-package.github.io/pmsims-website/ ) for further details.
6+ <!-- badges: start -->
187
19- ---
8+ <!-- badges: end -->
209
10+ ** pmsims** is an R package for estimating how much data are needed to
11+ develop reliable and generalisable prediction models. It uses a
12+ ** simulation-based learning curve** approach to quantify how model
13+ performance improves with increasing sample size, supporting principled
14+ study planning and feasibility assessment.
15+
16+ The package is fully model-agnostic: users can define how data are
17+ generated, how models are fitted, and how predictive performance is
18+ measured. It currently supports regression-based prediction models with
19+ continuous, binary, and time-to-event outcomes.
20+
21+ Developed at [ King’s College London] ( https://www.kcl.ac.uk/ ) (Department
22+ of Biostatistics & Health Informatics) with input from researchers,
23+ clinicians, and patient partners. See the [ pmsims project
24+ site] ( https://pmsims-package.github.io/pmsims-website/ ) for further
25+ details.
2126
2227## Installation
2328
2429Install the development version from GitHub:
2530
26- ``` r
31+ ``` r
2732# install.packages("remotes")
2833remotes :: install_github(" pmsims-package/pmsims" )
2934```
3035
3136## Minimal example
3237
33- ``` r
38+ ``` r
3439library(pmsims )
3540set.seed(123 )
3641
@@ -51,30 +56,42 @@ binary_example <- simulate_binary(
5156binary_example
5257```
5358
54- ---
59+ ------------------------------------------------------------------------
5560
5661## Get in touch
5762
5863We welcome questions, suggestions, and collaboration enquiries.
5964
60- - ** Email:** <a href =" mailto:pmsims@kcl.ac.uk?subject=pmsims%20enquiry " >pmsims@kcl.ac.uk </a >
61- - ** Feedback or bugs:** please <a href =" https://github.com/pmsims-package/pmsims/issues " >open a GitHub issue</a >
65+ - ** Email:**
66+ <a href =" mailto:pmsims@kcl.ac.uk?subject=pmsims%20enquiry " >pmsims@kcl.ac.uk </a >
67+ - ** Feedback or bugs:** please
68+ <a href =" https://github.com/pmsims-package/pmsims/issues " >open a
69+ GitHub issue</a >
6270
63- ---
71+ ------------------------------------------------------------------------
6472
6573## Funding
6674
67-
6875<div style =" display :flex ; justify-content :center ; align-items :center ; gap :100px ; margin :20px 0 ;" >
69- <div style =" text-align :center ;" >
76+
77+ <div style =" text-align :center ;" >
78+
7079 <img src="man/figures/nihr-logo.png" alt="NIHR logo" height="100" width="560" />
71- </div >
72- <div style =" text-align :center ;" >
80+
81+ </div >
82+
83+ <div style =" text-align :center ;" >
84+
7385 <img src="man/figures/kcl-logo.png" alt="King’s College London logo" width="150" height="120" />
74- </div >
86+
87+ </div >
88+
7589</div >
7690
77- This work is supported by the ** National Institute for Health and Care Research (NIHR)** under the
78- ** Research for Patient Benefit (RfPB)** Programme ([ * NIHR206858* ] ( https://www.fundingawards.nihr.ac.uk/award/NIHR206858 ) ).
91+ This work is supported by the ** National Institute for Health and Care
92+ Research (NIHR)** under the ** Research for Patient Benefit (RfPB)**
93+ Programme
94+ ([ * NIHR206858* ] ( https://www.fundingawards.nihr.ac.uk/award/NIHR206858 ) ).
7995
80- * The views expressed are those of the authors and not necessarily those of the NIHR or the Department of Health and Social Care.*
96+ * The views expressed are those of the authors and not necessarily those
97+ of the NIHR or the Department of Health and Social Care.*
0 commit comments