Description Usage Arguments Value Examples
county-level model
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
)
|
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 |
instance of S3 class Arima_sars2pack
1 2 | nytc = nytimes_county_data()
Arima_by_county(nytc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.