sim
generates a random time series from an object of class um
or tfm
.
# S3 method for tfm
sim(mdl, n = 100, y0 = NULL, seed = NULL, ...)sim(mdl, ...)
# S3 method for um
sim(
mdl,
n = 100,
z0 = NULL,
n0 = 0,
a = NULL,
seed = NULL,
envir = parent.frame(),
...
)
an object of class um
or tfm
.
number of observations.
initial conditions for the nonstationary series.
an integer.
other arguments.
initial conditions for the nonstationary series.
remove the n0 first observation, integer.
vector of innovations, optional.
environment in which the function arguments are evaluated. If NULL the calling environment of this function will be used.
An object of class ts
.