metric_error_checking_nofamily: metric_error_checking_nofamily

Description Usage Arguments

View source: R/metric_error_checking.R

Description

function containing all of the error catching for calculating model metrics This includes vectors being of the correct length and type

Usage

1
2
3
4
5
6
7
metric_error_checking_nofamily(
  actual,
  predicted,
  weight = NULL,
  na.rm = FALSE,
  rebase = FALSE
)

Arguments

actual

Array[Numeric] - Values we are aiming to predict.

predicted

Array[Numeric] - Values that we have predicted.

weight

Optional: Array[Numeric] - Weighting of predictions. If NULL even weighting is used

na.rm

Optional: boolean - If FALSE function will return NA is any value in NA

rebase

Optional: boolean - If TRUE predictions weighted mean will be rebased to match actual mean


gloverd2/admr documentation built on Dec. 2, 2020, 11:16 p.m.