compare_concordance
This Python package implements a statistical test for the comparison of correlated right-censored concordance indices. The code is derived entirely from the GPLv3-licensed R package compareC. Accordingly, this package is also licensed under GPLv3. If you use it in published work, you should cite the original authors' paper (see below).
Installation
First, build the C library:
$ python3 setup.py build_ext
Then, install using Pip:
$ pip3 install .
This has been tested on 64-bit Linux with GCC version 7.5.0 and Python 3.6. If the installation step fails, it may be because your system names the .so file differently than expected.
Usage
from compare_concordance import compare_concordance
scores_1 = model1.predict(x)
scores_2 = model2.predict(x)
concordance_1, concordance2, difference, zscore, pvalue = compare_concordance(
y['time'],
y['status'],
scores_1,
scores_2
)
Citation
Kang L, Chen W, Petrick NA and Gallas BD (2015). "Comparing two correlated C indices with right-censored survival outcome: a one-shot nonparametric approach." Statistics in Medicine, 34(4), pp. 685-703. http://dx.doi.org/10.1002/sim.6370.
Bibtex
@Article{,
title = {Comparing two correlated C indices with right-censored
survival outcome: a one-shot nonparametric approach},
author = {Le Kang and Weijie Chen and Nicholas A. Petrick and
Brandon D. Gallas},
year = {2015},
volume = {34},
number = {4},
pages = {685-703},
journal = {Statistics in Medicine},
url = {http://dx.doi.org/10.1002/sim.6370},
}
Metadata
Release files for compare-concordance 0.0.2
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 |
|---|---|---|---|---|
| compare_concordance-0.0.2.tar.gz | 43.3 kB | Without provenance | Details for compare_concordance-0.0.2.tar.gz |
Release files / compare_concordance-0.0.2.tar.gz
| Download URL | compare_concordance-0.0.2.tar.gz |
|---|---|
| Size | 43.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4b71ab1a76dfa514cdf6c65ec03ab3fa7549bc39aa34e8a9b190a55c3fb9c82
|
|
BLAKE2b-256 checksum How to use checksums |
7fe75f2a7a171f68c38c65cd38ffc19c0564766c5a2fe67cf07a273710ccf332
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.5
|
Security for compare-concordance 0.0.2
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.