make_model_cnt_linear: Split dataset into a list of time-series, one for each...

View source: R/models.R

make_model_cnt_linearR Documentation

Split dataset into a list of time-series, one for each country (splitting uses the iso_a3 variable) Filter the time-series to a time-frame defined by time_unit_extent Fill the gaps in the time-series, assuming that at missing date, cases and deaths = 0 Smoothing using moving average with a parameterable time-window (in days) Model time-series using a linear regression

Description

Split dataset into a list of time-series, one for each country (splitting uses the iso_a3 variable) Filter the time-series to a time-frame defined by time_unit_extent Fill the gaps in the time-series, assuming that at missing date, cases and deaths = 0 Smoothing using moving average with a parameterable time-window (in days) Model time-series using a linear regression

Usage

make_model_cnt_linear(
  series,
  df = df_ecdc,
  time_unit_extent = 12,
  ma_window = 3,
  min_sum = 30
)

epicentre-msf/covid19 documentation built on April 5, 2023, 10:24 p.m.