fit.prophet.Rd 769 B

123456789101112131415161718192021222324252627
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/prophet.R
  3. \name{fit.prophet}
  4. \alias{fit.prophet}
  5. \title{Fit the prophet model.}
  6. \usage{
  7. fit.prophet(m, df, ...)
  8. }
  9. \arguments{
  10. \item{m}{Prophet object.}
  11. \item{df}{Data frame.}
  12. \item{...}{Additional arguments passed to the \code{optimizing} or
  13. \code{sampling} functions in Stan.}
  14. }
  15. \description{
  16. This sets m$params to contain the fitted model parameters. It is a list
  17. with the following elements:
  18. k (M array): M posterior samples of the initial slope.
  19. m (M array): The initial intercept.
  20. delta (MxN matrix): The slope change at each of N changepoints.
  21. beta (MxK matrix): Coefficients for K seasonality features.
  22. sigma_obs (M array): Noise level.
  23. Note that M=1 if MAP estimation.
  24. }