| grass_compute | R Documentation |
Computes Cohen's kappa, PABAK, Gwet's AC1, positive and negative agreement, Byrt prevalence and bias indices, and two confidence intervals for kappa (Wald, and a logit-transformed Wilson-type interval).
grass_compute(
data,
format = c("wide", "matrix", "long", "paired"),
positive = NULL,
...
)
data |
Input data. Form depends on
|
format |
One of |
positive |
Optional character string naming the level to treat as the
positive (=1) class. Defaults to |
... |
Format-specific arguments: |
A grass_metrics S3 object.
grass_compute() is deprecated in grass 0.2.0. The new headline API is
grass_report(ratings = Y) returning a grass_card object. The full
coefficient panel is available via summary() or as.data.frame(). See
vignette("grassr") and grass_report().
# 2x2 counts (Cohen 1960 Table 1)
tab <- matrix(c(88, 10, 14, 88), nrow = 2,
dimnames = list(R1 = c("0", "1"), R2 = c("0", "1")))
grass_compute(tab, format = "matrix")
# Paired vectors
r1 <- c(1, 1, 0, 0, 1, 0, 1)
r2 <- c(1, 0, 0, 0, 1, 1, 1)
grass_compute(list(r1, r2), format = "paired")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.