add_seasonal | R Documentation |
Seasonal Trend Component
add_seasonal(x, ...)
## S3 method for class 'issm.component'
add_seasonal(
x,
frequency = 12,
gamma = 0.01,
s0 = NULL,
init_harmonics = frequency/2,
normalized_seasonality = TRUE,
init_scale = 1,
...
)
x |
an object of class issm.component or other supported class. |
... |
additional parameters. |
frequency |
seasonal frequency. |
gamma |
the decay coefficient on the error of the seasonal component |
s0 |
a vector of length frequency - 1 for the initial seasonal component. |
init_harmonics |
number of harmonics to initialize s0 when this is not provided. |
normalized_seasonality |
whether normalize the seasonal component based on the method of Roberts and McKenzie. This is applied only to a single seasonal frequency. |
init_scale |
the scaling multiplier for s0 (when this is not provided). |
An object of class issm.component updated with the seasonal component.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.