Arima_by_county: county-level model

Description Usage Arguments Value Examples

View source: R/Arima.R

Description

county-level model

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
Arima_by_county(
  src,
  state.in = "Massachusetts",
  county.in = "Norfolk",
  MAorder = NULL,
  Difforder = 1,
  basedate = "2020-02-15",
  lookback_days = 29,
  ARorder = NULL,
  max_date = NULL
)

Arguments

src

a tibble as returned by nytimes_state_data() or jhu_us_data()

state.in

character(1) state name

county.in

character(1) state name

MAorder

numeric(1) order of moving average component, defaults to NULL in which case min_bic is used to find best value on grid (0:5)^2

Difforder

numeric(1) order of differencing d in 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 src

ARorder

order of autoregressive component, defaults to NULL for optimizing choice, see MAorder

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

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