fitSARIMA: SARIMA Fitting to Disease Data

Description Usage Arguments Value Examples

View source: R/sarima_fxns.R

Description

fitSARIMA fits the model and fit level regions with a SARIMA model (either chosen by the user or using auto.arima) and calls the plotting function The model level is fitted both directly and as the weighted average of the fit level regions

Usage

1
2
fitSARIMA(mydata = NULL, all_years_epi = NULL, arima_model = NULL,
  auto_arima_model = NULL, device = "png")

Arguments

mydata

- dataframe with all the data for this DICE run

all_years_epi

the epi data for all years

arima_model

List of ARIMA model parameters: list(p=, d=, q=, P=, D, Q=) can be set to NULL to trigger the

auto_arima_model

A list of upper limit values for the ARIMA parameters. This list is created by the DICE code ONLY if arima_model is not set by the user

device

- 'pdf' or 'png'. Default is 'png' auto.arima process

Value

A list of tables with the results for the model (direct and aggregate) and fit regions

Examples

1
2
fitSARIMA((mydata = mydata, all_years_epi = all_years_epi, arima_model = arima_model,
auto_arima_model = NULL, covar = covar, covar_lag = covar_lag, run.list = run.list)

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