th.indep: Spatial threshold-independent accuracy measures

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/th_indep.R

Description

Calculates spatially corrected, threshold-independent metrics for an observational data set and model predictions (AUC, ROC, max-TSS)

Usage

1
th.indep(data, coord, spatial = TRUE, plot.ROC = FALSE, customize_plot = NULL)

Arguments

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.

spatial

A logical value indicating whether spatial corrected indices (rather than classical indices) should be computed.

plot.ROC

A logical indicating whether the ROC should be plotted. NOW DEPRECATED.

customize_plot

Additional plotting parameters passed to ggplot. NOW DEPRECATED.

Value

A list with the following components:

AUC

Area under curve

opt.thresh

optimal threshold for maximum TSS value

TSS

Maximum TSS value

sensitivity

Sensitivity

Specificity

Specificity

AUC.plot

A ggplot object

Author(s)

Gudrun Carl

References

Carl G, Kuehn I (2017) Spind: a package for computing spatially corrected accuracy measures. Ecography 40: 675-682. DOI: 10.1111/ecog.02593

See Also

th.dep

Examples

1
2
3
4
5
6
7
8
data(hook)
data <- hook[ ,1:2]
coord <- hook[ ,3:4]
si2 <- th.indep(data, coord, spatial = TRUE)
si2$AUC
si2$TSS
si2$opt.thresh
si2$plot

spind documentation built on Jan. 13, 2021, 6:04 p.m.