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 & Joie Ensor. It is licensed under the terms of the GNU General Public License v3.0 license.
Credits
pmvalsampsize is based on the original R package pmvalsampsize developed by Joie Ensor.
pmvalsampsize was created with cookiecutter and the py-pkgs-cookiecutter template.
Metadata
Release files for pmvalsampsize 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pmvalsampsize-0.2.1.tar.gz | 23.0 kB | Without provenance | Details for pmvalsampsize-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pmvalsampsize-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for pmvalsampsize-0.2.1-py3-none-any.whl |
Total release size: 46.0 kB
Release files / pmvalsampsize-0.2.1.tar.gz
| Download URL | pmvalsampsize-0.2.1.tar.gz |
|---|---|
| Size | 23.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c79e000cdec50f38e1cc6ade5b48ad820a36a92f7ed29e05f3be87c87e3be520
|
|
BLAKE2b-256 checksum How to use checksums |
80a50de43beb1a742b41dca56d01ba290b42ef7891bcd579dad409100c89a0ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.6 Windows/10
|
Release files / pmvalsampsize-0.2.1-py3-none-any.whl
| Download URL | pmvalsampsize-0.2.1-py3-none-any.whl |
|---|---|
| Size | 23.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4cc1e78ff4edabae3ebc45cd936313a75f8e5d974bfca3fc96d21b868fa0b952
|
|
BLAKE2b-256 checksum How to use checksums |
7ccceeec6c2394710feb5ad5a041b3615d2e446adec1b96b2aa3f1e8e2c01a70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.6 Windows/10
|
Security for pmvalsampsize 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.