mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-09-04 20:23:41 +00:00
25 lines
682 B
R
25 lines
682 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/prophet.R
|
|
\name{add_seasonality}
|
|
\alias{add_seasonality}
|
|
\title{Add a seasonal component with specified period and number of Fourier
|
|
components.}
|
|
\usage{
|
|
add_seasonality(m, name, period, fourier.order)
|
|
}
|
|
\arguments{
|
|
\item{m}{Prophet object.}
|
|
|
|
\item{name}{String name of the seasonality component.}
|
|
|
|
\item{period}{Float number of days in one period.}
|
|
|
|
\item{fourier.order}{Int number of Fourier components to use.}
|
|
}
|
|
\value{
|
|
The prophet model with the seasonality added.
|
|
}
|
|
\description{
|
|
Increasing the number of Fourier components allows the seasonality to change
|
|
more quickly (at risk of overfitting).
|
|
}
|