View source: R/calc_2x2_res_table.R
calc_2x2_res_table | R Documentation |
I have opinions about what statistics should be reported along with kappa when asssessing agreement between two raters. The chosen stats are based on the advice in paper a paper by reference needed.
calc_2x2_res_table(table, has_gold_std = FALSE)
table |
A table |
has_gold_std |
Logical; |
A tibble or data frame
## Example 1 ----------------
foo <- matrix(c(20.61, 1.52, 9.58, 68.29), ncol = 2, byrow = TRUE)
foo <- as.table(100 * foo)
foo
calc_2x2_res_table(table = foo, has_gold_std = FALSE)
calc_2x2_res_table(table = foo, has_gold_std = TRUE)
## Example 2 ----------------
df <- tibble::tribble(
~a, ~b, ~c,
1L, 1L, 1L,
0L, 1L, 1L,
1L, 1L, 0L,
0L, 1L, 0L,
1L, 1L, 1L,
0L, 1L, 1L,
1L, 1L, 0L
)
bar <- lamisc::make_table(data = df,
x = a,
x_lvls = c("1", "0"),
y = b,
y_lvls = c("1", "0"))
calc_2x2_res_table(table = bar, has_gold_std = FALSE)
calc_2x2_res_table(table = bar, has_gold_std = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.