predict.prophet.Rd 834 B

1234567891011121314151617181920212223242526272829303132333435
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/prophet.R
  3. \name{predict.prophet}
  4. \alias{predict.prophet}
  5. \title{Predict using the prophet model.}
  6. \usage{
  7. \method{predict}{prophet}(object, df = NULL, ...)
  8. }
  9. \arguments{
  10. \item{object}{Prophet object.}
  11. \item{df}{Dataframe with dates for predictions, and capacity if logistic
  12. growth. If not provided, predictions are made on the history.}
  13. \item{...}{additional arguments}
  14. }
  15. \value{
  16. A data_frame with a forecast
  17. }
  18. \description{
  19. Predict using the prophet model.
  20. }
  21. \examples{
  22. \dontrun{
  23. history <- data.frame(ds = seq(as.Date('2015-01-01'), as.Date('2016-01-01'), by = 'd'),
  24. y = sin(1:366/200) + rnorm(366)/10)
  25. m <- prophet(history)
  26. future <- make_future_dataframe(m, periods = 365)
  27. forecast <- predict(m, future)
  28. plot(m, forecast)
  29. }
  30. }