Description Usage Arguments Details Value See Also Examples
View source: R/confuseMatrix.R
confuseMatrix
Returns the confusion matrix containing the sensitivity and specificity of the best model subset of a GARP run.
1 | confuseMatrix(n, x, points)
|
n |
a numeric value specifying the number of models in the best subset output from GARP |
x |
a raster object of the summated raster of the best models output from GARP |
points |
a spatial object of presence data to use for testing locations |
For discrete cutpoints (n
), represents the number of models that agree on a predicted presence location.
The raster object (x
) should be a raster representing the number of models that agree on a predicted presence location per pixel and that outtput by sumRasters
.
The shapefile points
should presence locations that were not used by GARP for model training and those output by splitData
A data.frame object containing:
a
True positive
b
False negative
c
False positive
d
True negative
sensitivity
the proportion of occupied pixels correctly predicted as present
specificity
the proportion of non-occupied pixels correctly predicted as absent
1-specificity
the proportion of non-occupied pixels incorrectly predicted as present
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.