Coefficients of Interrater Reliability and Agreement
Python implementation of the R package IRR, all credit goes to the original authors [1]. The package contains functions to calculate coefficients of Interrater Reliability and Agreement for interval, ordinal and nominal data: intraclass-correlations, Finn-Coefficient, Robinson’s A, Kendall’s W, Cohen’s Kappa, and others. This is a straight line-for-line port from the R-package, so it is not particularly Pythonic and mainly made as an exercise to learn more about R. For documentation I highly recommend you head over to the R package page, they put in a lot of effort for the documentation!
How to install
The package is available on the Python Package Index (PyPI). To install it you can run:
pip install pyirr
How to use
A simple example:
from pyirr import read_data, intraclass_correlation
data = read_data("anxiety") # loads example data
intraclass_correlation(data, "twoway", "agreement")
Returns:
==================================================
Intraclass Correlation Results
==================================================
Model: twoway
Type: agreement
Subjects = 20
Raters = 3
ICC(A,1) = 0.20
F-Test, H0: r0 = 0 ; H1 : r0 > 0
F(19.00,39.75) = 1.83, p = 0.0543
95%-Confidence Interval for ICC Population Values:
-0.039 < ICC < 0.494
==================================================
Another simple example:
from pyirr import read_data, kappam_fleiss
data = read_data("anxiety") # loads example data
kappam_fleiss(data, detail=True)
Returns:
==================================================
Fleiss` Kappa for m Raters
==================================================
Subjects = 30
Raters = 6
Kappa = 0.430
z = 17.652
p-value = 0.000
Kappa z p.value
1. Depression 0.245 5.192 0.0
2. Personality Disorder 0.245 5.192 0.0
3. Schizophrenia 0.520 11.031 0.0
4. Neurosis 0.471 9.994 0.0
5. Other 0.566 12.009 0.0
==================================================
Metadata
Release files for pyirr 0.84.1.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 |
|---|---|---|---|---|
| pyirr-0.84.1.2.tar.gz | 53.9 kB | Without provenance | Details for pyirr-0.84.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyirr-0.84.1.2-py3-none-any.whl | Python 3 | none | any | Details for pyirr-0.84.1.2-py3-none-any.whl |
Total release size: 112.7 kB
Release files / pyirr-0.84.1.2.tar.gz
| Download URL | pyirr-0.84.1.2.tar.gz |
|---|---|
| Size | 53.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24c80e3b9a1685b3dd8a35e3c17c542711145b4f0abe256b47a5c9bf9c6b6eba
|
|
BLAKE2b-256 checksum How to use checksums |
3e40901b26ba63a0eeab2535f28d23f0dcb4a008768e4abac3055213a217008e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|
Release files / pyirr-0.84.1.2-py3-none-any.whl
| Download URL | pyirr-0.84.1.2-py3-none-any.whl |
|---|---|
| Size | 58.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b499b02503851ecf405291e61bbb95ebcc1ee4dfcccbdfcb484947a71a22c2b
|
|
BLAKE2b-256 checksum How to use checksums |
892a46d25a2ae516082127438a0d07bb6df6cc1578575297fa2e80d5469a0413
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|
Security for pyirr 0.84.1.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.