Description Usage Arguments Examples
full incidence for contiguous states
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
)
|
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 |
1 2 3 4 | usd = usa_facts_data()
cont = Arima_contig_states(usd)
cont
plot(cont)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.