Learn R Programming

xpose.xtras (version 0.1.2)

confmatr_by_threshold: Calculate all binary confusion matrix indices

Description

Calculate all binary confusion matrix indices

Usage

confmatr_by_threshold(
  test_vec,
  true_vec,
  ...,
  threshold = 0.5,
  pos_val = 1,
  prepend = "",
  cols = dplyr::everything()
)

Value

dataframe of confusion matrix indices

Arguments

test_vec

<double> Vector of probabilities

true_vec

<integer> Vector true values

...

For future extension

threshold

<double> Number that defines probability as positive.

pos_val

<integer> Positive value in true_vec

prepend

<character> Prepend column names with this to prevent name conflicts