A Python package for Decision Curve Analysis to evaluate prediction models, molecular markers, and diagnostic tests. For RELEASE NOTES, check: https://github.com/MSKCC-Epi-Bio/dcurves/blob/main/docs/CHANGELOG.md
Reason this release was yanked:
Scipy Bug, package not working in 3.13
Project description
dcurves
Diagnostic and prognostic models are typically evaluated with measures of accuracy that do not address clinical consequences. Decision-analytic techniques allow assessment of clinical outcomes, but often require collection of additional information that may be cumbersome to apply to models that yield continuous results.
Decision Curve Analysis is a method for evaluating and comparing prediction models that incorporates clinical consequences, requiring only the data set on which the models are tested, and can be applied to models that have either continuous or dichotomous results.
Functions
dcurves is a Python package for performing Decision Curve Analysis (DCA). It evaluates and compares prediction models for both binary and survival outcomes.
Main functions:
dca(): Performs Decision Curve Analysis, calculating net benefit and interventions avoidedplot_graphs(): Visualizes DCA resultsload_test_data(): Provides sample data for testing and examples
Simple Tutorial
This tutorial will guide you through installing and using the dcurves package to perform Decision Curve Analysis (DCA) with sample cancer diagnosis data.
Installation (bash)
# Install dcurves for DCA
pip install dcurves
DCA Example
# Import Libraries
from dcurves import dca, plot_graphs, load_test_data
# Load Package Simulation Data
df_binary = load_test_data.load_binary_df()
# Perform Decision Curve Analysis
df_dca = \
dca(
data=df_binary,
outcome='cancer',
modelnames=['famhistory'],
thresholds=np.arange(0, 0.36, 0.01),
)
# Standard DCA Plot
plot_graphs(
plot_df=df_dca,
graph_type='net_benefit',
y_limits=[-0.05, 0.2]
)
In-depth Tutorial and Explanations with Examples, Relevant Literature, and Forumn for Personalized Help
Visit https://www.decisioncurveanalysis.org
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Contributors
- Shaun Porwal (shaun.porwal@gmail.com)
- Rohan Singh (singhrohan@outlook.com)
License
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 dcurves-1.1.2.tar.gz.
File metadata
- Download URL: dcurves-1.1.2.tar.gz
- Upload date:
- Size: 61.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.1 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79d32ddfcbd652e188f1507fcf0f4bf4502805d128f6cf0acc3394fa295e2f51
|
|
| MD5 |
dc9cd3aa6d65b6660d46673099e0275c
|
|
| BLAKE2b-256 |
485511a15f3a4ba749f30db3586c047e03bbcef93b816690f690fdbc4615920d
|
File details
Details for the file dcurves-1.1.2-py3-none-any.whl.
File metadata
- Download URL: dcurves-1.1.2-py3-none-any.whl
- Upload date:
- Size: 62.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.1 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0257d1a6195eae7dc300f5f84b1306b048f2ae61f6487440edf13ccc0af4528a
|
|
| MD5 |
2dd605b8328100e33bcd6bf39147bfc7
|
|
| BLAKE2b-256 |
ee35f2c329cae59fa485bb2dddb88abb9efa7f7cc390e8c176cef92d2896c832
|