Do forecast using auto ETS

ets_fun(model_sample, h, target = "value")

Arguments

model_sample

preferably tsibble with "value" column

h

forecasting horizon, is ignored

target

name of the target variable, "value" by default

Value

auto ETS model

Details

Do forecast using auto ETS

Examples

test = dplyr::tibble(date = as.Date("2017-01-01") + 0:9, value = rnorm(10)) ets_fun(test, 1)
#> ETS(A,N,N) #> #> Call: #> forecast::ets(y = y) #> #> Smoothing parameters: #> alpha = 1e-04 #> #> Initial states: #> l = 0.1742 #> #> sigma: 1.0748 #> #> AIC AICc BIC #> 28.23642 32.23642 29.14418