Arima_nation: Use Rob Hyndman's forecast package to estimate drift in ARIMA...

Description Usage Arguments Value Examples

View source: R/Arima.R

Description

Use Rob Hyndman's forecast package to estimate drift in ARIMA models

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
Arima_nation(
  ejhu,
  alp3 = "USA",
  MAorder = NULL,
  Difforder = 1,
  basedate = "2020-02-15",
  lookback_days = 29,
  ARorder = NULL,
  max_date = NULL
)

Arguments

ejhu

a tibble as returned by enriched_jhu_data()

alp3

character(1) alpha3Code value for country

MAorder

numeric(1) order of moving average component

Difforder

numeric(1) differencing order d of ARIMA(p,d,q)

basedate

character(1) used by lubridate::as_date to filter away all earlier records

lookback_days

numeric(1) only uses this many days from most recent in ejhu

ARorder

order of autoregressive component

max_date

a date from which to start lookback ... defaults to NULL in which case the latest available date is used

Value

instance of S3 class Arima_sars2pack

Examples

1
2
3
4
ej = enriched_jhu_data()
lkus = Arima_nation(ej)
lkus
plot(lkus)

vjcitn/sars2app documentation built on Jan. 3, 2022, 12:19 a.m.