Extracts the fitted values.

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

Arguments

object

The time series model used to produce the forecasts

...

Additional arguments for forecast model 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 571. #> 3 nn 1939 655. #> 4 nn 1940 906. #> 5 nn 1941 1359. #> 6 nn 1942 1768. #> 7 nn 1943 1809. #> 8 nn 1944 2074. #> 9 nn 1945 2740. #> 10 nn 1946 4184. #> # … with 14 more rows