add_seasonality.Rd 682 B

1234567891011121314151617181920212223242526
  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 and number of Fourier
  6. components.}
  7. \usage{
  8. add_seasonality(m, name, period, fourier.order)
  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. }
  16. \value{
  17. The prophet model with the seasonality added.
  18. }
  19. \description{
  20. Increasing the number of Fourier components allows the seasonality to change
  21. more quickly (at risk of overfitting).
  22. }