Learn R Programming

ecospat (version 3.2)

ecospat.cohen.kappa: 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.

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.

Details

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

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab