Clinical-trial and clinical-research statistical computing for Python
Project description
PyStatsClinical
Clinical-trial and clinical-research statistical computing for Python.
Status:
0.1.0— first module shipped. The treatment-effect module is available now; more clinical-research methods are on the roadmap below.
PyStatsClinical is part of the open-core PyStatistics family:
| Package | Layer |
|---|---|
pystatistics |
Fundamental, general statistics |
pystatsbio |
Biotech / pharma statistics |
pystatsclinical |
Clinical-trial / clinical-research statistics |
pystatsgenomic |
Genomics / computational-biology statistics |
pystatsfinance |
Financial / quantitative statistics |
pystatsinsurance |
Actuarial / insurance statistics |
Like its siblings, it builds on pystatistics for the general statistical layer
and adds methods specific to clinical research.
What's available now (0.1.0)
Treatment-effect measures from a two-arm 2×2 — the canonical readout for a binary outcome:
from pystatsclinical import effect
r = effect.risk_measures(
treated_events=15, treated_n=100,
control_events=30, control_n=100,
)
print(r.summary())
risk_measures reports the control and experimental event rates (CER, EER),
the absolute risk reduction (ARR) with a Newcombe or Wald confidence interval,
the risk ratio (RR) with the Katz log-method interval, the relative risk
reduction (RRR), and the number needed to treat / harm (NNT/NNH) with the
Altman (1998) interval. It fails loud on invalid counts and on an undefined risk
ratio (CER = 0).
Roadmap (candidates, not commitments)
- Responder analysis: responder rate with a confidence interval at a clinical threshold.
- Diagnostic accuracy: sensitivity, specificity, predictive values, likelihood ratios.
- Non-inferiority / equivalence testing and stratified (Mantel–Haenszel) effects.
Installation
pip install pystatsclinical
License
MIT © Hai-Shuo. Part of the SGCX open-core ecosystem.
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 pystatsclinical-0.1.1.tar.gz.
File metadata
- Download URL: pystatsclinical-0.1.1.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e43730d1576c1a0334949fd6e5059cc57efb0aed4db61c9227fe5b7189be6d13
|
|
| MD5 |
72c9e9560e65b00c95ff5eed68bec25c
|
|
| BLAKE2b-256 |
f16e1a9aec6fd6e3db289b6db4c95b32472246a2602fc6504799bb4305fc648c
|
Provenance
The following attestation bundles were made for pystatsclinical-0.1.1.tar.gz:
Publisher:
publish.yml on sgcx-org/pystatsclinical
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pystatsclinical-0.1.1.tar.gz -
Subject digest:
e43730d1576c1a0334949fd6e5059cc57efb0aed4db61c9227fe5b7189be6d13 - Sigstore transparency entry: 1618897878
- Sigstore integration time:
-
Permalink:
sgcx-org/pystatsclinical@b7a16a2be4f14506a5f48ab18657f58c1e50912e -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/sgcx-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b7a16a2be4f14506a5f48ab18657f58c1e50912e -
Trigger Event:
release
-
Statement type:
File details
Details for the file pystatsclinical-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pystatsclinical-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7ee6c05cac8ac9482b6a8779d3950c65992027175698e228d7871561223e777
|
|
| MD5 |
84e47c4fe9b17f5b7b4a901d6ca1f8b8
|
|
| BLAKE2b-256 |
0dcacc0b6beb020d5f6a0cdb574f33a72e03db3102077b6c7ef9098f8f937a16
|
Provenance
The following attestation bundles were made for pystatsclinical-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on sgcx-org/pystatsclinical
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pystatsclinical-0.1.1-py3-none-any.whl -
Subject digest:
f7ee6c05cac8ac9482b6a8779d3950c65992027175698e228d7871561223e777 - Sigstore transparency entry: 1618897978
- Sigstore integration time:
-
Permalink:
sgcx-org/pystatsclinical@b7a16a2be4f14506a5f48ab18657f58c1e50912e -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/sgcx-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b7a16a2be4f14506a5f48ab18657f58c1e50912e -
Trigger Event:
release
-
Statement type: