# Theta method with transform
deaths <- as_tsibble(USAccDeaths)
deaths %>%
model(theta = THETA(log(value))) %>%
forecast(h = "4 years") %>%
autoplot(deaths)
# Compare seasonal specifications
library(tsibbledata)
library(dplyr)
aus_retail %>%
filter(Industry == "Clothing retailing") %>%
model(theta_multiplicative = THETA(Turnover ~ season(method = "multiplicative")),
theta_additive = THETA(Turnover ~ season(method = "additive"))) %>%
accuracy()
Run the code above in your browser using DataLab