Description Usage Arguments Details Value Author(s) See Also Examples
Simulates a General Linear Time Series that can have nonGaussian innovations.
It uses the FFT so it is O(N log(N)) flops where N=length(a) and N is assumed
to be a power of 2.
The R function convolve
is used which implements the FFT.
1 | SimGLP(psi, a)
|
psi |
vector, length Q, of MA coefficients starting with 1. |
a |
vector, length Q+n, of innovations, where n is the length of time series to be generated. |
z_t = ∑_{k=0}^Q psi_k a_{t-k}
where t=1,…,n and the innovations $a_t, t=1-Q, ..., 0, 1, ..., n$ are given in the input vector a.
Since convolve
uses the FFT this is faster than direct computation.
vector of length n, where n=length(a)-length(psi)
A.I. McLeod
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.