th.dep | R Documentation |
Calculates spatially corrected, threshold-dependent metrics for an observational data set and model predictions (Kappa and confusion matrix)
th.dep(data, coord, thresh = 0.5, spatial = TRUE)
data |
A data frame or matrix with two columns. The first column should contain actual presence/absence data (binary, 0 or 1) and the second column should contain model predictions of probability of occurrence (numeric, between 0 and 1). |
coord |
A data frame or matrix with two columns containing x,y coordinates for each actual and predicted value. Coordinates must be integer and consecutively numbered. |
thresh |
A cutoff value for classifying predictions as modeled presences or modeled absences. Default is 0.5. |
spatial |
A logical indicating whether spatially corrected indices (rather than classical indices) should be computed. |
A list with the following components:
kappa
Kappa statistic
cm
Confusion matrix
sensitivity
Sensitivity
specificity
Specificity
actuals
Actual occurrence data or adjusted actual occurrence data
splitlevel.pred
Level splitting of predicted values
splitlevel.act
Level splitting of actuals or adjusted actuals
splitposition.pred
Position splitting of predicted values
splitposition.act
Position splitting of actuals or adjusted actuals
Gudrun Carl
Carl G, Kuehn I (2017) Spind: a package for computing spatially corrected accuracy measures. Ecography 40: 675-682. DOI: 10.1111/ecog.02593
th.indep
data(hook)
data <- hook[ ,1:2]
coord <- hook[ ,3:4]
si1 <- th.dep(data, coord, spatial = TRUE)
si1$kappa
si1$cm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.