Description Usage Arguments Details Value Author(s) References Examples
Simulate a monthly seasonal series
1 2 3 4 5 6 7 8 9 10 |
N |
Length in years |
sd |
Standard deviation for all seasonal factors |
beta_1 |
Persistance wrt to previous period of the seasonal change |
change_sd |
Standard deviation of simulated change for all seasonal factors |
model |
Model for non-seasonal time series. A list. |
start |
Start date of output time series |
multiplicative |
Boolean. Should multiplicative seasonal factors be simulated |
extra_smooth |
Boolean. Should the seasonal factors be smooth on a period-by-period basis |
Standard deviation of the seasonal factor is in percent if a multiplicative time series model is assumed. Otherwise it is in unitless. Using a non-seasonal ARIMA model for the initialization of the seasonal factor does not impact the seasonality of the time series. It can just make it easier for human eyes to grasp the seasonal nature of the series. The definition of the ar and ma parameter needs to be inline with the chosen model.
Multiple simulated monthly time series of class xts including:
The original series
The original series without seasonal effects
The seasonal effect
Daniel Ollech
Ollech, D. (2021). Seasonal adjustment of daily time series. Journal of Time Series Econometrics. doi: 10.1515/jtse-2020-0028
1 2 | x=sim_monthly(5, multiplicative=TRUE)
ts.plot(x[,1])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.