I can't seem to retrieve the components from fable
's ETS
model running for example:
# data from `tsibble`.
aus_holidays <- tourism %>%
filter(Purpose == "Holiday") %>%
summarise(Trips = sum(Trips))
fit <- aus_holidays %>% model(ETS(Trips))
components(fit)
# Error: Problem with `mutate()` input `cmp`. x `levels.yearquarter()` not supported. ℹ Input `cmp` is `map(.fit, components)`.
The error clearly points at a mutate issue with the level's period. And indeed, it works fine with - for example - minute data:
# data from `datasets`.
www_usage <- as_tsibble(WWWusage)
fit <- www_usage %>% model(ETS(value))
components(fit)
# A dable: 101 x 6 [1]
# Key: .model [1]
# ETS(A,Ad,N) Decomposition: value = lag(level, 1) + 0.814958027904187 * lag(slope, 1) +
# remainder
# .model index value level slope remainder
# <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
# ...
My question is: how do I retreive fable
's ETS
components in this case? I might be missing something obvious when running above.