get (proportion) percentage agreement of answers in a vector - 'agreement' to be defined by cutoff
Source:R/prop_agree.R
prop_agree.Rd
get (proportion) percentage agreement of answers in a vector - 'agreement' to be defined by cutoff
Examples
# binary vector
vec <- c(0, 1, 1, 0, 0, 1, NA_real_, 1)
prop_agree(x = vec, cutoff = 1)
#> [1] 0.5714286
# with restriction - throws NA as not applicable
prop_agree(x = vec, cutoff = 1, restrict_level = 8)
#> [1] NA