fit_iteratively: Iteratively fit a model to the data

Usage Arguments Value Examples

View source: R/forecast.R

Usage

1
2
3
4
fit_iteratively(incidences, n_pred = 14, interval = NULL,
  start_period = 8, max_n_past_obs = Inf, model = "bsts",
  n_samples = 4000, vb = FALSE, fit_type = "stan",
  length_local_trend = 7, iter = 4000, ...)

Arguments

incidences

Vector of length n with the past incidences used to fit the model and make predictions.

n_pred

prediction horizon, i.e. number of days to predict into the future

interval

interval between predictions. Maybe delete?

max_n_past_obs

maximum number of past observations to take into account

Value

a data.frame with the data

Examples

1

nikosbosse/epipredictr documentation built on April 7, 2020, 9:51 p.m.