Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

predict.prophet

Predict using the prophet model.


Description

Predict using the prophet model.

Usage

## S3 method for class 'prophet'
predict(object, df = NULL, ...)

Arguments

object

Prophet object.

df

Dataframe with dates for predictions (column ds), and capacity (column cap) if logistic growth. If not provided, predictions are made on the history.

...

additional arguments.

Value

A dataframe with the forecast components.

Examples

## Not run: 
history <- data.frame(ds = seq(as.Date('2015-01-01'), as.Date('2016-01-01'), by = 'd'),
                      y = sin(1:366/200) + rnorm(366)/10)
m <- prophet(history)
future <- make_future_dataframe(m, periods = 365)
forecast <- predict(m, future)
plot(m, forecast)

## End(Not run)

prophet

Automatic Forecasting Procedure

v1.0
MIT + file LICENSE
Authors
Sean Taylor [cre, aut], Ben Letham [aut]
Initial release
2021-03-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.