get_residuals: get_residuals

Description Usage Arguments Value

View source: R/predict_data.R

Description

Get the residuals of a model. We use this metric to decide the best model (lower residual is better). Future implementations might include AIC

Usage

1
get_residuals(model_name, ts_data)

Arguments

model_name

(character): The name of the model to use. One of 'base', 'snaive', 'ets', arima'. NOTE: 'base' currently disabled due to poor of accuracy

ts_data

(dataframe): an events dataframe

Value

a list with model_name, model_fit and standard_error


theasjblog/covid19_package documentation built on May 2, 2021, 8:11 p.m.