Sample size for external validation of a prediction model
Project description
pmvalsampsize
Sample size for external validation of a prediction model
Installation
$ pip install pmvalsampsize
Usage
pmvalsampsize computes the minimum sample size required for the external validation of an existing multivariable prediction model using the criteria proposed by Archer (2020) and Riley (2021)
pmvalsampsize can currently be used to calculate the minimum sample size for the external validation of models with binary outcomes.
Continuous and survival (time-to-event) outcome model calculations are a work in progress.
from pmvalsampsize.pmvalsampsize import *
samplesize = pmvalsampsize(type="b", cstatistic=0.8, graph=True, lpbeta=(1.33, 1.75), prevalence=0.43, noprint=True) # change options to meet your requirements
plt.show()
summary(samplesize)
Contributing
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
License
pmvalsampsize was created by Rebecca Whittle. It is licensed under the terms of the GNU General Public License v3.0 license.
Credits
pmvalsampsize was created with cookiecutter and the py-pkgs-cookiecutter template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pmvalsampsize-0.1.0.tar.gz.
File metadata
- Download URL: pmvalsampsize-0.1.0.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4da7f0e528b94ad54e7b6d778d424d75d25737f78188ce63196c21c44ee39aa
|
|
| MD5 |
faadd03cfb7ccb4ac1c3978a48eaf83f
|
|
| BLAKE2b-256 |
c8f04c4d643c43b9bd80fb5f6773c91331c4ca75a6d964a7b9c21426c4db6497
|
File details
Details for the file pmvalsampsize-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pmvalsampsize-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fd48d314213204bae9f68c5619cd9ec3ffaabc22a7e55b4b069be7e5b2ee9c1
|
|
| MD5 |
b5a882649a6a446ce373b9a49e5cbba3
|
|
| BLAKE2b-256 |
8af7524eb363ab82a1a1da82b04fc20a865fd9932ef5c6c458bcd8ec23bc1d2a
|