run_arima: Run this first. It applies the ARIMA to predict future values...

View source: R/arima-spikes-onegeo.R

run_arimaR Documentation

Run this first. It applies the ARIMA to predict future values and then produces a dataset with the actual and fitted values.

Description

Run this first. It applies the ARIMA to predict future values and then produces a dataset with the actual and fitted values.

Usage

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
)

Arguments

df

A dataframe including time as timestamp and searches for your given geography in one column.

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?.

Examples

run_arima(df = data, interrupt = ymd("2019-12-19"), geo = "US")

tlcaputi/gtrendR documentation built on Nov. 3, 2022, 10:46 p.m.