add_seasonality.Rd 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/prophet.R
  3. \name{add_seasonality}
  4. \alias{add_seasonality}
  5. \title{Add a seasonal component with specified period, number of Fourier
  6. components, and prior scale.}
  7. \usage{
  8. add_seasonality(m, name, period, fourier.order, prior.scale = NULL)
  9. }
  10. \arguments{
  11. \item{m}{Prophet object.}
  12. \item{name}{String name of the seasonality component.}
  13. \item{period}{Float number of days in one period.}
  14. \item{fourier.order}{Int number of Fourier components to use.}
  15. \item{prior.scale}{Float prior scale for this component.}
  16. }
  17. \value{
  18. The prophet model with the seasonality added.
  19. }
  20. \description{
  21. Increasing the number of Fourier components allows the seasonality to change
  22. more quickly (at risk of overfitting). Default values for yearly and weekly
  23. seasonalities are 10 and 3 respectively.
  24. }
  25. \details{
  26. Increasing prior scale will allow this seasonality component more
  27. flexibility, decreasing will dampen it. If not provided, will use the
  28. seasonality.prior.scale provided on Prophet initialization (defaults to 10).
  29. }