predictive_samples.Rd 645 B

1234567891011121314151617181920212223
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/prophet.R
  3. \name{predictive_samples}
  4. \alias{predictive_samples}
  5. \title{Sample from the posterior predictive distribution.}
  6. \usage{
  7. predictive_samples(m, df)
  8. }
  9. \arguments{
  10. \item{m}{Prophet object.}
  11. \item{df}{Dataframe with dates for predictions (column ds), and capacity
  12. (column cap) if logistic growth.}
  13. }
  14. \value{
  15. A list with items "trend", "seasonal", and "yhat" containing
  16. posterior predictive samples for that component. "seasonal" is the sum
  17. of seasonalities, holidays, and added regressors.
  18. }
  19. \description{
  20. Sample from the posterior predictive distribution.
  21. }