predict.prophet.Rd 872 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 (column ds), and capacity
  12. (column cap) if logistic growth. If not provided, predictions are made on
  13. the history.}
  14. \item{...}{additional arguments.}
  15. }
  16. \value{
  17. A dataframe with the forecast components.
  18. }
  19. \description{
  20. Predict using the prophet model.
  21. }
  22. \examples{
  23. \dontrun{
  24. history <- data.frame(ds = seq(as.Date('2015-01-01'), as.Date('2016-01-01'), by = 'd'),
  25. y = sin(1:366/200) + rnorm(366)/10)
  26. m <- prophet(history)
  27. future <- make_future_dataframe(m, periods = 365)
  28. forecast <- predict(m, future)
  29. plot(m, forecast)
  30. }
  31. }