Arima_contig_states: full incidence for contiguous states

Description Usage Arguments Examples

View source: R/Arima.R

Description

full incidence for contiguous states

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
Arima_contig_states(
  src,
  state.in = "All contig",
  MAorder = 2,
  Difforder = 1,
  basedate = "2020-02-15",
  lookback_days = 29,
  ARorder = 0,
  contig_vec = contig_states_twolet(),
  max_date = NULL
)

Arguments

src

tibble for state level data like that of nytimes_state_data()

state.in

character(1) state name

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 src

ARorder

order of autoregressive component

contig_vec

character() vector of tokens for subsetting src

max_date

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

Examples

1
2
3
4
usd = usa_facts_data()
cont = Arima_contig_states(usd)
cont
plot(cont)

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