View source: R/arima-spikes-onegeo.R
run_arima | R Documentation |
Run this first. It applies the ARIMA to predict future values and then produces a dataset with the actual and fitted values.
run_arima( df, interrupt, begin = T, end = T, geo = "US", kalman = F, bootstrap = F, bootnum = 1000, linear = F, rsv = F, periods = NA, maxK = 5, first_differencing = NA, seasonal_differencing = NA )
df |
A dataframe including time as |
interrupt |
The date where things change. ARIMA will be predicted on all days before the interrupt. |
geo |
The column name of the geography of searches that you want. |
polycolor |
What color do you want the polygon to be?. |
run_arima(df = data, interrupt = ymd("2019-12-19"), geo = "US")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.