Learn R Programming

fable.prophet (version 0.1.0)

forecast.fbl_prophet: Produce forecasts from the prophet model

Description

If additional future information is required (such as exogenous variables or carrying capacities) by the model, then they should be included as variables of the new_data argument.

Usage

# S3 method for fbl_prophet
forecast(object, new_data, specials = NULL, times = 1000, ...)

Arguments

object

The time series model used to produce the forecasts

new_data

A tsibble containing future information used to forecast.

specials
times

The number of sample paths to use in estimating the forecast distribution when boostrap = TRUE.

...

Additional arguments passed to prophet::predict.prophet().

Value

A list of forecasts.

See Also

prophet::predict.prophet()

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
if (requireNamespace("tsibbledata")) {
library(tsibble)
tsibbledata::aus_production %>%
  model(
    prophet = prophet(Beer ~ season("year", 4, type = "multiplicative"))
  ) %>%
  forecast()
}
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab