Description Usage Arguments Value Details Examples
Simulate a new Moving Average (MA) vector time series and return the time series
1 | Simulate_new_MA(a, T.len, noise.type, DEBUG = FALSE)
|
a |
Array, returned by |
T.len |
Numeric, the length of the time series to generate |
noise.type |
the type of noise that is driving the MA process. See Details section. |
DEBUG |
Logical, for outputting information on the progress of the function |
A T.len x dim(a)[1]
matrix, where each column corresponds to a
coordinate of the vector time series
The function simulates a moving average process of dimension
dim(a)[1]
, defined by
X[t,] = a[,,1] * epsilon[,t-1] + a[,,2] * epsilon[,t-2] + ... + a[,,dim(a)[3]] * epsilon[t-dim(a)[3]]
noise.type
specifies the nature and internal correlation of the noise
that is driving the MA process. It can take the values
white-noise
the noise is Gaussian with covariance matrix identity
white-noise
the noise is Gaussian with diagonal covariance matrix, whose j-th diagonal entry is ((j - 0.5 )*pi)^(-1)
studentk
the coordinates of the noise are independent and have a student t distribution with 'k' degrees of freedom, standardized to have variance 1
1 2 3 4 | ma.scale1=c(-1.4,2.3,-2)
a1=Generate_filterMA(6, 6, MA.len=3, ma.scale=ma.scale1)
X=Simulate_new_MA(a1, T.len=512, noise.type='wiener')
plot.ts(X)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.