Simulates future paths from a dataset using a fitted model. Innovations are
sampled by the model's assumed error distribution. If bootstrap
is TRUE
,
innovations will be sampled from the model's residuals. If new_data
contains the .innov
column, those values will be treated as innovations.
# S3 method for NNETAR generate(x, new_data, specials = NULL, bootstrap = FALSE, ...)
x | A fitted model. |
---|---|
new_data | A |
specials | (passed by |
bootstrap | If |
... | Additional arguments for forecast model methods. |
#> # A tsibble: 2 x 4 [1Y] #> # Key: .model, .rep [1] #> .model index .rep .sim #> <chr> <dbl> <chr> <dbl> #> 1 nn 1961 1 33926. #> 2 nn 1962 1 34189.