Skip to main content

Sample size for development of a prediction model.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pmsampsize-0.1.0.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pmsampsize-0.1.0-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file pmsampsize-0.1.0.tar.gz.

File metadata

  • Download URL: pmsampsize-0.1.0.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Windows/10

File hashes

Hashes for pmsampsize-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0b683a0a0fc088347101440d05b027958e7d88da96ed99791f3caf2fb0763ea7
MD5 4e97a63d5fbee7f7ac97bb3e0e3afa11
BLAKE2b-256 c1083066f3b02aa085439dd3e685e4947c1568fdb0e0023854889f415df1a395

See more details on using hashes here.

File details

Details for the file pmsampsize-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pmsampsize-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

Hashes for pmsampsize-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5219eb797cd5b3628a8c6a2eab4801568a94b19d3c4a12c3f892d9d8c4b01567
MD5 a599f3f60923bae7a2e40a84d093ca0f
BLAKE2b-256 39ae251b9ddb3d71f69e8aac475afd69148c779849a9ddfff78442a3972bb9ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page