Extract estimated states from an ETS model.

# S3 method for ETS
components(object, ...)

Arguments

object

An estimated model.

...

Unused.

Value

A fabletools::dable() containing estimated states.

Examples

as_tsibble(USAccDeaths) %>% model(ets = ETS(log(value) ~ season("A"))) %>% components()
#> # A dable: 84 x 7 [1M] #> # Key: .model [1] #> # ETS(A,A,A) Decomposition: log(value) = lag(level, 1) + lag(slope, 1) + #> # lag(season, 12) + remainder #> .model index `log(value)` level slope season remainder #> <chr> <mth> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 ets 1972 Jan NA NA NA -0.0908 NA #> 2 ets 1972 Feb NA NA NA -0.190 NA #> 3 ets 1972 Mar NA NA NA -0.0856 NA #> 4 ets 1972 Apr NA NA NA -0.0569 NA #> 5 ets 1972 May NA NA NA 0.0418 NA #> 6 ets 1972 Jun NA NA NA 0.0930 NA #> 7 ets 1972 Jul NA NA NA 0.180 NA #> 8 ets 1972 Aug NA NA NA 0.110 NA #> 9 ets 1972 Sep NA NA NA -0.00355 NA #> 10 ets 1972 Oct NA NA NA 0.0302 NA #> # … with 74 more rows