powered by
This function allows us to generate a non-stationary AR(1) block process.
gen_ar1blocks(phi, sigma2, n_total, n_block, scale = 10, title = NULL, seed = 135, ...)
A vector containing the AR(1) block process.
vector
A double value for the autocorrection parameter \(\phi\).
double
A double value for the variance parameter \(\sigma ^2\).
An integer indicating the length of the simulated AR(1) block process.
integer
An integer indicating the length of each block of the AR(1) block process.
An integer indicating the number of levels of decomposition. The default value is 10.
A string indicating the name of the time series data.
string
An integer defined for simulation replication purposes.
Additional parameters.
Yuming Zhang and Haotian Xu
Xt = gen_ar1blocks(phi = 0.9, sigma2 = 1, n_total = 1000, n_block = 10, scale = 100) plot(Xt) Yt = gen_ar1blocks(phi = 0.5, sigma2 = 5, n_total = 800, n_block = 20, scale = 50) plot(Yt)
Run the code above in your browser using DataLab