Skip to content

Commit 6f40426

Browse files
committed
Update README; add logo
1 parent 3350fc7 commit 6f40426

56 files changed

Lines changed: 313 additions & 223 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 0 additions & 73 deletions
This file was deleted.

README.Rmd

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
---
2+
output: github_document
3+
---
4+
5+
<!-- README.md is generated from README.Rmd. Please edit that file -->
6+
7+
```{r, include = FALSE}
8+
knitr::opts_chunk$set(
9+
collapse = TRUE,
10+
comment = "#>",
11+
out.width = "100%"
12+
)
13+
```
14+
15+
# 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>
16+
17+
<!-- badges: start -->
18+
<!-- badges: end -->
19+
20+
21+
**pmsims** is an R package for estimating how much data are needed to develop
22+
reliable and generalisable prediction models. It uses a **simulation-based
23+
learning curve** approach to quantify how model performance improves with
24+
increasing sample size, supporting principled study planning and feasibility
25+
assessment.
26+
27+
The package is fully model-agnostic: users can define how data are generated,
28+
how models are fitted, and how predictive performance is measured. It currently
29+
supports regression-based prediction models with continuous, binary, and
30+
time-to-event outcomes.
31+
32+
Developed at [King’s College London](https://www.kcl.ac.uk/) (Department of
33+
Biostatistics & Health Informatics) with input from researchers, clinicians,
34+
and patient partners. See the [pmsims project
35+
site](https://pmsims-package.github.io/pmsims-website/) for further details.
36+
37+
## Installation
38+
39+
Install the development version from GitHub:
40+
41+
```r
42+
# install.packages("remotes")
43+
remotes::install_github("pmsims-package/pmsims")
44+
```
45+
46+
## Minimal example
47+
48+
```r
49+
library(pmsims)
50+
set.seed(123)
51+
52+
binary_example <- simulate_binary(
53+
signal_parameters = 15,
54+
noise_parameters = 0,
55+
predictor_type = "continuous",
56+
binary_predictor_prevalence = NULL,
57+
outcome_prevalence = 0.20,
58+
large_sample_cstatistic = 0.80,
59+
model = "glm",
60+
metric = "calibration_slope",
61+
minimum_acceptable_performance = 0.90,
62+
n_reps_total = 1000,
63+
mean_or_assurance = "assurance"
64+
)
65+
66+
binary_example
67+
```
68+
69+
---
70+
71+
## Get in touch
72+
73+
We welcome questions, suggestions, and collaboration enquiries.
74+
75+
- **Email:** <a href="mailto:pmsims@kcl.ac.uk?subject=pmsims%20enquiry">pmsims@kcl.ac.uk</a>
76+
- **Feedback or bugs:** please <a href="https://github.com/pmsims-package/pmsims/issues">open a GitHub issue</a>
77+
78+
---
79+
80+
## Funding
81+
82+
83+
<div style="display:flex; justify-content:center; align-items:center; gap:100px; margin:20px 0;">
84+
<div style="text-align:center;">
85+
<img src="man/figures/nihr-logo.png" alt="NIHR logo" height="100" width="560" />
86+
</div>
87+
<div style="text-align:center;">
88+
<img src="man/figures/kcl-logo.png" alt="King’s College London logo" width="150" height="120" />
89+
</div>
90+
</div>
91+
92+
This work is supported by the **National Institute for Health and Care Research (NIHR)** under the
93+
**Research for Patient Benefit (RfPB)** Programme ([*NIHR206858*](https://www.fundingawards.nihr.ac.uk/award/NIHR206858)).
94+
95+
*The views expressed are those of the authors and not necessarily those of the NIHR or the Department of Health and Social Care.*

README.md

Lines changed: 46 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,41 @@
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

2429
Install the development version from GitHub:
2530

26-
```r
31+
``` r
2732
# install.packages("remotes")
2833
remotes::install_github("pmsims-package/pmsims")
2934
```
3035

3136
## Minimal example
3237

33-
```r
38+
``` r
3439
library(pmsims)
3540
set.seed(123)
3641

@@ -51,30 +56,42 @@ binary_example <- simulate_binary(
5156
binary_example
5257
```
5358

54-
---
59+
------------------------------------------------------------------------
5560

5661
## Get in touch
5762

5863
We 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.*

_pkgdown.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ template:
1414

1515
output_dir: docs
1616

17+
extra_files:
18+
- man/figures
19+
1720
home:
1821
title: "pmsims"
1922
description: >

docs/404.html

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE.html

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/apple-touch-icon.png

9.42 KB
Loading

0 commit comments

Comments
 (0)