sample_model.Rd 738 B

1234567891011121314151617181920212223242526272829
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/prophet.R
  3. \name{sample_model}
  4. \alias{sample_model}
  5. \title{Simulate observations from the extrapolated generative model.}
  6. \usage{
  7. sample_model(m, df, seasonal.features, iteration, s_a, s_m)
  8. }
  9. \arguments{
  10. \item{m}{Prophet object.}
  11. \item{df}{Prediction dataframe.}
  12. \item{seasonal.features}{Data frame of seasonal features}
  13. \item{iteration}{Int sampling iteration to use parameters from.}
  14. \item{s_a}{Indicator vector for additive components}
  15. \item{s_m}{Indicator vector for multiplicative components}
  16. }
  17. \value{
  18. List of trend and yhat, each a vector like df$t.
  19. }
  20. \description{
  21. Simulate observations from the extrapolated generative model.
  22. }
  23. \keyword{internal}