Function to calculate observed-predicted error statistics.
rmw_calculate_model_errors(
df,
value_model = "value_predict",
value_observed = "value",
testing_only = TRUE,
as_long = FALSE
)
Tibble.
Data frame with observed-predicted variables.
The modelled/predicted variable in "df"
.
The observed variable in "df"
.
Should only the testing set be used for the calculation of errors?
Should the returned tibble be in "long" format? This is useful for plotting.
Stuart K. Grange