sensitivity: Sensitivity

View source: R/sensitivity.R

sensitivityR Documentation

Sensitivity

Description

sensitivity calculates the sensitivity and (optionally) the associated standard deviation from a confusion matrix.

Usage

sensitivity(CMX, st.dev = TRUE)

Arguments

CMX

a confusion matrix - output from cmx

st.dev

a logical indicating whether the associated standard deviation should be calculated

Details

Sensitivity is the proportion of observed positives correctly predicted, and reflects a model's ability to predict a presence given that a species actually occurs at a location.

Value

if st.dev = FALSE, returns: sensitivity.

if st.dev = TRUE, returns a dataframe where:

[1,1] sensitivity
[1,2] sensitivity.sd standard deviation of sensitivity

Author(s)

Elizabeth Freeman eafreeman@fs.fed.us

See Also

cmx, pcc, specificity, Kappa, auc

Examples

data(SIM3DATA)

sensitivity(cmx(SIM3DATA))

sensitivity(cmx(SIM3DATA),st.dev=FALSE)

PresenceAbsence documentation built on Jan. 7, 2023, 9:09 a.m.