check_input_binary {scoringutils} | R Documentation |
Check that inputs are correct for binary forecast
Description
Function assesses whether the inputs correspond to the requirements for scoring binary forecasts.
Usage
check_input_binary(observed, predicted)
Arguments
observed |
Input to be checked. Should be a factor of length n with
exactly two levels, holding the observed values.
The highest factor level is assumed to be the reference level. This means
that |
predicted |
Input to be checked. |
Value
Returns TRUE if the check was successful and a string with an error message otherwise.
[Package scoringutils version 2.1.0 Index]