kappaBootCI | R Documentation |
Function to compute cohen's kappa with binary data with a bootstrap confidence interval
kappaBootCI(
x,
y,
seed = 20,
num.boot = 1000,
conf.level = 0.95,
method = c("cohen", "weighted", "fleiss", "krippendorff"),
type = "nominal"
)
x |
vector of binary scores from first rater |
y |
vector of binary scores from second rater |
seed |
random seed for bootstrapping |
num.boot |
number of times to bootstrap. Defaults to 1000. |
conf.level |
confidence level. Defaults to 95%. |
method |
statistic to calculate bootstrap estimate |
type |
method setting for |
Cohen's kappa measures the amount of agreement between 2 raters of a binary variable. The bootstrap confidence interval is adjusted (BCa).
bootstraped confidence interval for Cohen's kappa.
Aline Talhouk, Derek Chiu
a <- rbinom(n = 100, size = 1, prob = 0.3)
b <- rbinom(n = 100, size = 1, prob = 0.7)
kappaBootCI(a, b)
## Use a different seed
kappaBootCI(a, b, 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.