rmw_calculate_model_errors: Function to calculate observed-predicted error statistics.

View source: R/rmw_calculate_model_errors.R

rmw_calculate_model_errorsR Documentation

Function to calculate observed-predicted error statistics.

Description

Function to calculate observed-predicted error statistics.

Usage

rmw_calculate_model_errors(
  df,
  value_model = "value_predict",
  value_observed = "value",
  testing_only = TRUE,
  as_long = FALSE
)

Arguments

df

Data frame with observed-predicted variables.

value_model

The modelled/predicted variable in "df".

value_observed

The observed variable in "df".

testing_only

Should only the testing set be used for the calculation of errors?

as_long

Should the returned tibble be in "long" format? This is useful for plotting.

Value

Tibble.

Author(s)

Stuart K. Grange


rmweather documentation built on June 22, 2024, 9:33 a.m.