generate.RW | R Documentation |
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 class 'RW' generate(x, new_data, bootstrap = FALSE, ...)
x |
A fitted model. |
new_data |
A |
bootstrap |
If |
... |
Additional arguments for forecast model methods. |
fabletools::generate.mdl_df
as_tsibble(Nile) %>% model(NAIVE(value)) %>% generate() library(tsibbledata) aus_production %>% model(snaive = SNAIVE(Beer ~ lag("year"))) %>% generate()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.