Extracts the fitted values.

# S3 method for class 'fable_theta'
fitted(object, ...)

Arguments

object

A model for which forecasts are required.

...

Other arguments passed to methods

Value

A vector of fitted values.

Examples

library(tsibbledata)
vic_elec %>%
  model(avg = MEAN(Demand)) %>%
  fitted()
#> # A tsibble: 52,608 x 3 [30m] <Australia/Melbourne>
#> # Key:       .model [1]
#>    .model Time                .fitted
#>    <chr>  <dttm>                <dbl>
#>  1 avg    2012-01-01 00:00:00   4665.
#>  2 avg    2012-01-01 00:30:00   4665.
#>  3 avg    2012-01-01 01:00:00   4665.
#>  4 avg    2012-01-01 01:30:00   4665.
#>  5 avg    2012-01-01 02:00:00   4665.
#>  6 avg    2012-01-01 02:30:00   4665.
#>  7 avg    2012-01-01 03:00:00   4665.
#>  8 avg    2012-01-01 03:30:00   4665.
#>  9 avg    2012-01-01 04:00:00   4665.
#> 10 avg    2012-01-01 04:30:00   4665.
#> # ℹ 52,598 more rows