ecospat.cohen.kappa {ecospat}R Documentation

Cohen's Kappa

Description

Calculates Cohen's kappa and variance estimates, within a 95 percent confidence interval.

Usage

    ecospat.cohen.kappa(xtab)

Arguments

xtab

A symmetric agreement table.

Details

The argument xtab is a contingency table. xtab <- table(Pred >= th, Sp.occ)

Value

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.

Author(s)

Christophe Randin christophe.randin@wsl.ch with contributions of Niklaus. E. Zimmermann niklaus.zimmermann@wsl.ch and Valeria Di Cola valeria.dicola@unil.ch

References

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.

See Also

ecospat.meva.table, ecospat.max.tss, ecospat.plot.tss, ecospat.plot.kappa, ecospat.max.kappa

Examples

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)

[Package ecospat version 4.1.1 Index]