rma | R Documentation |
Generates a zero mean vector moving average process.
rma(n, d = 2, Psi = NULL, noise = c("mnormal", "mt"), sigma = NULL, df = 4)
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 |
This simulates a vector moving average process
X_t=\varepsilon_t+∑_{k \in lags} Ψ_k \varepsilon_{t-k},\quad 1≤q t≤q 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.
A matrix with d
columns and n
rows. Each row corresponds to one time point.
rar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.