conf_matrix: Auxiliar (intern) function for calculating and exporting...

View source: R/conf_mat.R

conf_matrixR Documentation

Auxiliar (intern) function for calculating and exporting confusion matrix

Description

Auxiliar (intern) function for calculating and exporting confusion matrix

Usage

conf_matrix(df, ref)

Arguments

df

complete dataset with all events (by month)

ref

the reference model - Mod. Ford and Labosier

Details

This function is supposed to be used only in the context of the FD-Viz app

Value

melted data frame to draw plot. The function return some confusion matrix common statistics: - Accuracy - Cohen's Kappa - Specificity - Sensitivity - Precision - F1

Examples

all_fd <- process_all(de_tha_d,include_variables = T, data = 'station')$Series

confusion_matrix <- conf_matrix(all_fd, all_fd$`Osman et al.`)


pedroalencar1/fdClassify documentation built on Sept. 15, 2023, 3:46 a.m.