predictive_samples.Rd 559 B

12345678910111213141516171819202122
  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" and "yhat" containing
  16. posterior predictive samples for that component.
  17. }
  18. \description{
  19. Sample from the posterior predictive distribution.
  20. }