Extracts the fitted values.

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

Arguments

object

A model for which forecasts are required.

...

Other arguments passed to methods

Value

A vector of fitted values.

Examples

as_tsibble(airmiles) %>%
  model(nn = NNETAR(box_cox(value, 0.15))) %>%
  fitted()
#> # A tsibble: 24 x 3 [1Y]
#> # Key:       .model [1]
#>    .model index .fitted
#>    <chr>  <dbl>   <dbl>
#>  1 nn      1937     NA 
#>  2 nn      1938    573.
#>  3 nn      1939    657.
#>  4 nn      1940    907.
#>  5 nn      1941   1361.
#>  6 nn      1942   1769.
#>  7 nn      1943   1810.
#>  8 nn      1944   2075.
#>  9 nn      1945   2740.
#> 10 nn      1946   4182.
#> # ℹ 14 more rows