| kr20 | R Documentation |
Calculates the Kuder-Richardson 20 (KR-20) reliability coefficient for a data.frame or matrix of dichotomous (0/1) items.
kr20(m)
m |
A data.frame or matrix where rows are subjects and columns are dichotomously scored (0/1) items. |
A numeric value for the KR-20 coefficient, or NA_real_ if calculation is not possible.
item_matrix <- data.frame(
m1 = c(1, 1, 0, 1),
m2 = c(1, 0, 1, 1),
m3 = c(0, 1, 0, 0)
)
kr20(item_matrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.