| specificity {PresenceAbsence} | R Documentation |
Specificity
Description
specificity calculates the specificity and (optionally) the associated standard deviation from a confusion matrix.
Usage
specificity(CMX, st.dev = TRUE)
Arguments
CMX |
a confusion matrix - output from |
st.dev |
a logical indicating whether the associated standard deviation should be calculated |
Details
Specificity is the proportion of observed negatives correctly predicted, and reflects a model's ability to predict an absence given that a species actually does not occur at a location.
Value
if st.dev = FALSE, returns: specificity.
if st.dev = TRUE, returns a dataframe where:
| [1,1] | specificity | |
| [1,2] | specificity.sd | standard deviation of specificity |
Author(s)
Elizabeth Freeman eafreeman@fs.fed.us
See Also
cmx, pcc, sensitivity, Kappa, auc
Examples
data(SIM3DATA)
specificity(cmx(SIM3DATA))
specificity(cmx(SIM3DATA),st.dev=FALSE)
[Package PresenceAbsence version 1.1.11 Index]