View source: R/categorical_chance_adjusted.R
cat_adjusted | R Documentation |
Description
cat_adjusted( .data, object = Object, rater = Rater, score = Score, approach = c("alpha", "gamma", "irsq", "kappa", "pi", "s"), categories = NULL, weighting = c("identity", "linear", "quadratic", "custom"), agreement = NULL, bootstrap = 2000, alpha_c = NULL, custom_weights = NULL, warnings = TRUE )
.data |
Required. A matrix or data frame in tall format containing
categorical data where each row corresponds to a single score (i.e.,
assignment of an object to a category) Cells should contain numbers or
characters indicating the discrete category that the corresponding rater
assigned the corresponding object to. Cells should contain |
object |
Optional. The name of the variable in |
rater |
Optional. The name of the variable in |
score |
Optional. The name of the variable in |
approach |
Optional. A string or vector of strings specifying the chance-adjustment approach(es) to use. Currently, the "alpha", "gamma", "irsq", "kappa", "pi", and "s" approaches are available. (default = c("alpha", "gamma", "kappa", "irsq", "pi", "s")) |
categories |
Optional. A vector (numeric, character, or factor)
containing all possible categories that objects could have been assigned
to. When this argument is omitted or set to |
weighting |
Optional. A single string specifying the type of weighting
scheme to use. Weighting schemes allow the accommodation of ordered and
unordered categories with the same formulas. Currently, "identity" weights
are available for unordered/nominal categories, both "linear" and
"quadratic" weights are available for ordered categories, and "custom"
weights can be specified via |
agreement |
Optional. Either |
bootstrap |
Optional. A single non-negative integer that specifies how many bootstrap resamplings should be computed (used primarily for estimating confidence intervals and visualizing uncertainty). To skip bootstrapping, set this argument to 0. (default = 2000) |
alpha_c |
Optional. Either |
custom_weights |
Optional. Either |
warnings |
Optional. A single logical value that specifies whether warnings should be displayed. (default = TRUE). |
An object of type 'cai' containing the results and details.
A character vector containing the name of each approach in order
A numeric vector containing the raw observed agreement according to each approach
A numeric vector containing the expected chance agreement according to each approach
A numeric vector containing the chance-adjusted agreement according to each approach. Note that these values are those typically named after each approach (e.g., this is the kappa coefficient)
A list containing the results of the bootstrap procedure
A list containing the details of the analysis,
such as the formatted codes
, relevant counts, weighting scheme and
weight matrix.
The function call that created these results.
Gwet, K. L. (2014). Handbook of inter-rater reliability: The definitive guide to measuring the extent of agreement among raters (4th ed.). Gaithersburg, MD: Advanced Analytics.
van Oest, R. (2019). A new coefficient of interrater agreement: The challenge of highly unequal category proportions. Psychological Methods, 24(4), 439-451. https://doi.org/10/ggbk3f
Other functions for categorical data:
cat_specific()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.