Extracts the fitted values.
# S3 method for class 'NNETAR'
fitted(object, ...)
A vector of fitted values.
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 1360.
#> 6 nn 1942 1769.
#> 7 nn 1943 1810.
#> 8 nn 1944 2075.
#> 9 nn 1945 2743.
#> 10 nn 1946 4187.
#> # ℹ 14 more rows