Simulates future paths from a dataset using a fitted model.
Usage
# S3 method for LOGISTIC
generate(x, new_data, specials, ...)
Arguments
- x
An object.
- new_data
A tsibble containing the time points and exogenous regressors to produce forecasts for.
- specials
(passed by
fabletools::generate.mdl_df()
).- ...
Other arguments passed to methods
Examples
melb_rain |>
model(logistic = LOGISTIC(Wet ~ fourier(K = 5, period = "year"))) |>
generate()
#> # A tsibble: 14 x 4 [1D]
#> # Key: .model, .rep [1]
#> .model .rep Date .sim
#> <chr> <chr> <date> <int>
#> 1 logistic 1 2011-11-01 0
#> 2 logistic 1 2011-11-02 1
#> 3 logistic 1 2011-11-03 0
#> 4 logistic 1 2011-11-04 0
#> 5 logistic 1 2011-11-05 1
#> 6 logistic 1 2011-11-06 0
#> 7 logistic 1 2011-11-07 1
#> 8 logistic 1 2011-11-08 1
#> 9 logistic 1 2011-11-09 0
#> 10 logistic 1 2011-11-10 1
#> 11 logistic 1 2011-11-11 1
#> 12 logistic 1 2011-11-12 1
#> 13 logistic 1 2011-11-13 1
#> 14 logistic 1 2011-11-14 0