specificity | R Documentation |
specificity
calculates the specificity and (optionally) the associated standard deviation from a confusion matrix.
specificity(CMX, st.dev = TRUE)
CMX |
a confusion matrix - output from |
st.dev |
a logical indicating whether the associated standard deviation should be calculated |
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.
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 |
Elizabeth Freeman eafreeman@fs.fed.us
cmx
, pcc
, sensitivity
, Kappa
, auc
data(SIM3DATA) specificity(cmx(SIM3DATA)) specificity(cmx(SIM3DATA),st.dev=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.