Skip to contents

Simulates future paths from a dataset using a fitted model.

Usage

# S3 method for BINNET
generate(x, new_data, specials = NULL, ...)

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(nn = BINNET(Wet ~ fourier(K = 1, period = "year"))) |>
  generate()
#> # A tsibble: 14 x 4 [1D]
#> # Key:       .model, .rep [1]
#>    .model .rep  Date        .sim
#>    <chr>  <chr> <date>     <int>
#>  1 nn     1     2011-11-01     0
#>  2 nn     1     2011-11-02     0
#>  3 nn     1     2011-11-03     0
#>  4 nn     1     2011-11-04     0
#>  5 nn     1     2011-11-05     0
#>  6 nn     1     2011-11-06     1
#>  7 nn     1     2011-11-07     0
#>  8 nn     1     2011-11-08     0
#>  9 nn     1     2011-11-09     1
#> 10 nn     1     2011-11-10     0
#> 11 nn     1     2011-11-11     0
#> 12 nn     1     2011-11-12     1
#> 13 nn     1     2011-11-13     1
#> 14 nn     1     2011-11-14     1