rma {freqdom} | R Documentation |
Moving average process
Description
Generates a zero mean vector moving average process.
Usage
rma(n, d = 2, Psi = NULL, noise = c("mnormal", "mt"), sigma = NULL, df = 4)
Arguments
n |
number of observations to generate. |
d |
dimension of the time series. |
Psi |
a |
noise |
|
sigma |
covariance or scale matrix of the innovations. If NULL then the identity matrix is used. |
df |
degrees of freedom if |
Details
This simulates a vector moving average process
X_t=\varepsilon_t+\sum_{k \in lags} \Psi_k \varepsilon_{t-k},\quad 1\leq t\leq n.
The innovation process \varepsilon_t
is either multivariate normal or multivarite t
with
a predefined covariance/scale matrix sigma and zero mean. The noise is generated with the
package mvtnorm
. For Gaussian noise we use rmvnorm
. For Student-t noise we use
rmvt
. The parameters sigma
and df
are imported as arguments, otherwise we use default settings.
Value
A matrix with d
columns and n
rows. Each row corresponds to one time point.