Description Usage Arguments Value Author(s) Examples
Calculates generalized kappa for k-raters
1 |
ratings |
|
data |
data in long format with three columns: ids, raters, scores |
id, rater, score |
column names corresponding to IDs, raters, and scores |
A list containing the generalized kappa coefficient, the estimated variance, the test statistic, and corresponding p-value comparing the statistic to a standard normal distribution.
$method | agreement method | |
$ragree.name | method type | |
$subjects | number of subjects | |
$raters | number of raters | |
$categories | number of categories | |
$value | generalized kappa statistic | |
$variance | variance | |
$statistic | test statistic | |
$stat.name | test statistic name | |
$p.value | p-value comparing statistic to standard normal distribution | |
$detail | ||
...$p_hat_j | proportion of all classifications assigned to category j; the pairwise agreement | |
...$p_bar | overall agreement | |
...$p_bar_e | expected chance agreement | |
Robert Redd rredd@jimmy.harvard.edu
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## long format using data argument
gkappa(data = disease.l, id = 'patient', rater = 'rater', score = 'category')
## wide format using ratings argument
gkappa(ratings = disease.w)
## example from irr package
library('irr')
data(diagnoses)
gkappa(ratings = diagnoses)
## fleiss's variance calculation is slightly different
kappam.fleiss(diagnoses)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.