forecast.fbl_prophet | R Documentation |
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.
## S3 method for class 'fbl_prophet'
forecast(object, new_data, specials = NULL, times = 1000, ...)
object |
The time series model used to produce the forecasts |
new_data |
A |
specials |
(passed by |
times |
The number of sample paths to use in estimating the forecast distribution when |
... |
Additional arguments passed to |
A list of forecasts.
prophet::predict.prophet()
if (requireNamespace("tsibbledata")) {
library(tsibble)
tsibbledata::aus_production %>%
model(
prophet = prophet(Beer ~ season("year", 4, type = "multiplicative"))
) %>%
forecast()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.