Skip to main content

Python implementation of the R package IRR

Project description

Python implementation of the R package IRR. For documentation please head over to the R package page, they put in a lot of effort for the documentation!

How to install

Just run:

pip install pyirr

Example

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
==================================================

Project details


Download files

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

Files for pyirr, version 0.84.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pyirr-0.84.1.1.tar.gz (14.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page