View source: R/simulated_data.R
simulated_tci | R Documentation |
Simulate Trend-Cycle Component
simulated_tci(t, rho, lambda, sigma_nu, sigma_e, start = 0)
simulated_cycle(t, rho, lambda)
simulated_trend(n = 1, sigma_nu = 1, start = 0)
simulated_irregular(n = 1, sigma_e = 1)
t, rho, lambda, sigma_nu, sigma_e, start, n |
parameters, see details. |
The following formula is used for the cycle
C_t = \rho \[
\cos (2 \pi t / \lambda) +
\sin (2 \pi t / \lambda)
\]
The trend component is assumed to be a random walk with drift:
T_t = T_{t-1} + \nu_t\quad \nu_t \sim \mathcal{N}(0, \sigma_\nu^2)
The irregular component is white noise with mean zero and variance \sigma_e^2
:
I_t = e_t\text{ with }
e_t \sim \mathcal{N}(0, \sigma_e^2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.