statistics - Different results in R console versus Jupyter -
i'm analyzing agreement between 2 judges scoring same item using cohen's kappa. i'm using r , kappa.test() function fmsb package. when run in r console don't error, in jupyter do.
in r console
rd <- c(1,0,0,0,1,1,0,0,1,0) ba <- c(1,0,0,1,0,1,0,0,1,0) kappa.test(rd, ba, conf.level=0.95) $result estimate cohen's kappa statistics , test null hypothesis extent of agreement same random (kappa=0) data: rd , ba z = 1.7723, p-value = 0.03817 95 percent confidence interval: 0.06683747 1.09982919 sample estimates: [1] 0.5833333 $judgement [1] "moderate agreement"
but in jupyter get
error in vapply(seq_along(mapped), function(i) {: values must length 1, fun(x[[1]]) result length 0
Comments
Post a Comment