funKappa {ConNEcT} | R Documentation |
Calculate Cohen's kappa between two vectors
funKappa(vec1, vec2)
vec1 |
Vector of binary time series (NA not allowed) |
vec2 |
Vector of binary time series (equal length as vec1, NA not allowed) |
list with two elements
value
of the Cohen's kappa and
funName
name of the function
data1<-rep(c(1,0,1,1),25)
data2<-ifelse(rnorm(100,0,1)<0.7,0,1)
funKappa(data1,data2)