ecospat.cohen.kappa | R Documentation |
Calculates Cohen's kappa and variance estimates, within a 95 percent confidence interval.
ecospat.cohen.kappa(xtab)
xtab |
A symmetric agreement table. |
The argument xtab is a contingency table. xtab <- table(Pred >= th, Sp.occ)
A list with elements 'kap', 'vark', 'totn' and 'ci' is returned. 'kap' is the cohen's kappa, 'vark' is the variance estimate within a 95 percent confidence interval, 'totn' is the number of plots and 'ci' is the confidence interval.
Christophe Randin christophe.randin@wsl.ch with contributions of Niklaus. E. Zimmermann niklaus.zimmermann@wsl.ch and Valeria Di Cola valeria.dicola@unil.ch
Bishop, Y.M.M., S.E. Fienberg and P.W. Holland. 1975. Discrete multivariate analysis: Theory and Practice. Cambridge, MA: MIT Press. pp. 395-397.
Pearce, J. and S. Ferrier. 2000. Evaluating the predictive performance of habitat models developed using logistic regression. Ecol. Model., 133, 225-245.
ecospat.meva.table
, ecospat.max.tss
, ecospat.plot.tss
, ecospat.plot.kappa
, ecospat.max.kappa
Pred <- ecospat.testData$glm_Agrostis_capillaris
Sp.occ <- ecospat.testData$Agrostis_capillaris
th <- 0.39 # threshold
xtab <- table(Pred >= th, Sp.occ)
ecospat.cohen.kappa(xtab)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.