Function for Interrater Reliability.
agreement(data, vars, sft = FALSE, wght = "unweighted", exct = FALSE)
The data as a data frame.
A string naming the variable from data
that contains the
diagnosis given by the observer, variable can be categorical, ordinal or
numeric.
Boolean selection whether to show frequency table. Default is 'false'.
A list for the argument weight (wght), for weighted kappa analysis. Default is 'unweighted'. 'squared' or 'equal' should be selected only with ordinal variables. The function gives error if the variable type is not ordinal.
Boolean selection whether to use exact kappa. Effects only more than 3 observers.
A results object containing:
results$irrtable | a table | ||||
results$text2 | a html | ||||
results$text | a preformatted |
Tables can be converted to data frames with asDF
or as.data.frame
. For example:
results$irrtable$asDF
as.data.frame(results$irrtable)
if (FALSE) {
# example will be added
}