multistate exclusion prior to ARIMA
1 2 3 4 5 6 7 8 9 10 11 12 | Arima_drop_states(
src_us,
src_st,
states.in = c("New York", "New Jersey"),
MAorder = 3,
Difforder = 1,
basedate = "2020-02-15",
lookback_days = 29,
ARorder = 0,
max_date = NULL,
ARorder.nat = 3
)
|
src_us |
tibble for national level data like that of enriched_jhu_data() |
src_st |
tibble for state level data like that of nytimes_state_data() |
states.in |
character() vector of state names |
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 |
max_date |
character(1) or date |
ARorder.nat |
order of autoregressive component for entire nation |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.