calc.stat.err: Calculate Error in SARIMA Fit/Forecast

Description Usage Arguments Value Examples

View source: R/tables_fxns.R

Description

calc.stat.err calculates the error: mean absolute error, mean relative error and mean error relative to the NULL model for each month/week for which a fit/forecast was calculated

Usage

1
calc.stat.err(tables = NULL, nfit = NULL, state_id = NULL)

Arguments

tables

A list with all the mydata tables - both observed and fitted/forecasted

nfit

An integer - the number of data points used in the fit

state_id

The abbreviation of the state/region

Value

tables An updated tables list with the nfit row of the SEIR errors filled

Examples

1
calc.stat.err(tables=tables, nfit= nfit, state_id = state_id)

predsci/DICE documentation built on Aug. 9, 2019, 9:41 a.m.