check_true_values: Check Observed Value Input For Lower-level Scoring Functions

View source: R/input-check-helpers.R

check_true_valuesR Documentation

Check Observed Value Input For Lower-level Scoring Functions

Description

Helper function to check inputs for lower-level score functions.

Usage

check_true_values(true_values, type = c("continuous", "integer", "binary"))

Arguments

true_values

A vector with the true observed values of size n

type

character, one of "continuous" (default), "integer" or "binary" that defines the type of the forecast


scoringutils documentation built on Feb. 16, 2023, 7:30 p.m.