compute_confustats: Compute confusion statistics

Description Usage Arguments Details Value

Description

Compute standard set of statistics from a confusion matrix based on classification results (including misclassification rate, sensitivity, specificity, precision, number of perennial and non-perennial stations correctly and incorrectly classified, total number of stations, and the predicted prevalence of flow intermittence compared to the observed prevalence).

Usage

1
compute_confustats(in_gselpreds, ndigits = 2)

Arguments

in_gselpreds

data.table with a row for each record and two columns, 'truth' and 'response'.

ndigits

number of decimals to include in misclassification, sensitivity, specificity, and precision metrics.

Details

Formatted statistics for Extended Data Table 2 in Messager et al. (2021).

Value

vector of statistics


NaiaraLopezRojo/globalIRmap documentation built on Dec. 17, 2021, 5:19 a.m.