Description Usage Arguments Value Examples
View source: R/dataGenerator.R
Generate a Realization from the deCAFS model (see references for further details).
y_t = μ_t + ε_t
where
μ_t = μ_{t-1} + η_t + δ_t, \quad η_t \sim N(0, σ_η^2), \ δ_t \ \in R
and
ε_t = φ ε_{t-1} + ν_t \quad ν_t \sim N(0, σ_ν^2)
1 2 3 4 5 6 7 8 9 10 |
N |
number of data points |
sdEta |
standard deviation in Random Walk |
sdNu |
standard deviation in AR(1) |
phi |
AR(1) autocorrelation parameter |
type |
possible scenarios for the jump structure |
nbSeg |
number of segments |
jumpSize |
max size of the jumps |
seed |
random number generator seed (default is 42) |
A list containing:
y
the data sequence,
signal
the underlying signal without the superimposed AR(1) noise,
changepoints
the changepoint indices
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.