NAME

Statistics::Kappa::Cohen - Calculate inter-annotator agreement.

VERSION

Version 0.03

SYNOPSIS

use Statistics::Kappa::Cohen;

my @data = ([1, 1], [1, 0], [1, 0], [0, 0], [1, 1], [0, 1]);
my $ck = 'Statistics::Kappa::Cohen'->new(data => \@data);
my $kappa =  $ck->kappa;

METHODS

'Statistics::Kappa::Cohen'->new(data => \@data)

The constructor. It takes a named argument data which should contain an array reference. The elements of the array should be anonymous arrays of two elements, representing answers by the two raters we are comparing.

$self->confidence_interval($p)

Return the confidence interval as an anonymous array with two elements. The argument is the required percentage, typically 0.95 or 0.99.

data

AUTHOR

E. Choroba <choroba@matfyz.cz>

BUGS

Please report any bugs or feature requests to the GitHub repository.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Statistics::Kappa::Cohen

You can also look for information at:

SEE ALSO

Other modules from Statistics::Kappa: Statistics::Kappa::Fleiss and Statistics::Kappa::Weighted. Another inter-rater agreement statistics: Statistics::Krippendorff.

LICENSE AND COPYRIGHT

This software is Copyright (c) 2026 by E. Choroba <choroba@matfyz.cz>.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)