Simulate white noise series from a list of functions and vector of regimes
mixARnoise_sim.Rd
Simulate white noise series from a list of functions and vector of regimes. This function is used internally for simulation from MixAR models.
Details
If the length of the list rdist
is max(z)
, then
z[[i]]
is the random number generator for regime i
.
Alternatively, if rdist
is of length one, then the same
generator will be used for all regimes.
mixARnoise_sim
returns a vector, say y
, of the same
length as z
, such that y[i]
is generated by
z[[i]]
.