calc.mech.err: Calculate Error in Mechanistic Fit/Forecast

Description Usage Arguments Value Examples

View source: R/tables_fxns.R

Description

calc.mech.err calculates the error: mean absoulte 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
2
calc.mech.err(tables = NULL, profiles = NULL, nfit = NULL,
  state_id = NULL)

Arguments

tables

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

profiles

An array with 10,000 selected dengue profiles from the MCMC fitting procedure

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.mech.err(tables=tables, profiles=profiles, nfit= nfit, state_id = state_id)

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