Learn R Programming

PresenceAbsence (version 1.1.11)

pcc: Percent Correctly Classified

Description

pcc calculates the percent correctly classified and (optionally) the associated standard deviation from a confusion matrix.

Usage

pcc(CMX, st.dev = TRUE)

Value

if st.dev = FALSE, returns: PCC percent correctly classified.

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

[1,1]PCCpercent correctly classified
[1,2]PCC.sdstandard deviation of PCC

Arguments

CMX

a confusion matrix - output from cmx

st.dev

a logical indicating whether the associated standard deviation should be calculated

Author

Elizabeth Freeman eafreeman@fs.fed.us

Details

Percent Correctly Classified is simply the proportion of test observations that are correctly classified.

See Also

cmx, sensitivity, specificity, Kappa, auc

Examples

Run this code
data(SIM3DATA)

pcc(cmx(SIM3DATA))

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

Run the code above in your browser using DataLab