Skip to main content

pmsampsize

Sample size for development of a prediction model.

Installation

$ pip install pmsampsize

Usage

pmsampsize computes the minimum sample size required for the development of a new multivariable prediction model using the criteria proposed by Riley et al. (2018). pmsampsize can be used to calculate the minimum sample size for the development of models with continuous, binary or survival (time-to-event) outcomes. Riley et al. (2018) lay out a series of criteria the sample size should meet. These aim to minimise the overfitting and to ensure precise estimation of key parameters in the prediction model.

from pmsampsize.pmsampsize import *

samplesize = pmsampsize(type="b", cstatistic=0.89, parameters=24, prevalence=0.174) # change options to meet your requirements

License

pmsampsize was created by Rebecca Whittle & Joie Ensor. It is licensed under the terms of the GNU General Public License v3.0 license.

Credits

pmsampsize is based on the original R package pmsampsize developed by Joie Ensor.

pmsampsize was created with cookiecutter and the py-pkgs-cookiecutter template.

Metadata

Release files for pmsampsize 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pmsampsize 0.1.0
File Size Uploaded Provenance Actions
pmsampsize-0.1.0.tar.gz 20.6 kB Without provenance Details for pmsampsize-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pmsampsize 0.1.0
File Interpreter ABI Platform Actions
pmsampsize-0.1.0-py3-none-any.whl Python 3 none any Details for pmsampsize-0.1.0-py3-none-any.whl

Total release size: 41.4 kB

Release files / pmsampsize-0.1.0.tar.gz

Download URL pmsampsize-0.1.0.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0b683a0a0fc088347101440d05b027958e7d88da96ed99791f3caf2fb0763ea7
BLAKE2b-256 checksum
How to use checksums
c1083066f3b02aa085439dd3e685e4947c1568fdb0e0023854889f415df1a395
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 / pmsampsize-0.1.0-py3-none-any.whl

Download URL pmsampsize-0.1.0-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5219eb797cd5b3628a8c6a2eab4801568a94b19d3c4a12c3f892d9d8c4b01567
BLAKE2b-256 checksum
How to use checksums
39ae251b9ddb3d71f69e8aac475afd69148c779849a9ddfff78442a3972bb9ff
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 pmsampsize 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page