Do forecast using auto TBATS

tbats_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 TBATS model

Details

Do forecast using auto TBATS

Examples

test = dplyr::tibble(date = as.Date("2017-01-01") + 0:9, value = rnorm(10)) tbats_fun(test, 1)
#> BATS(1, {0,0}, -, -) #> #> Call: forecast::tbats(y = y) #> #> Parameters #> Alpha: -0.009909058 #> #> Seed States: #> [,1] #> [1,] 0.1364877 #> #> Sigma: 1.10983 #> AIC: 29.10998