This function computes the covariance/correlation matrix for a stationary auto-regressive moving-average (ARMA) model. The user specifies
the matrix size n
and the function returns a matrix of covariance/correlation values at all times Time[1], ... , Time[n]
(in the
case where conditioning values are specified using the condvals
argument, only the time values for non-conditional values are included).
The function requires the model to be stationary, which means that the vector of auto-regression coefficients must give an auto-regressive
characteristic polynomial with roots outside the unit circle.
1 2 3 4 5 6 7 |
n |
Positive integer giving the number of values in the time-series (output variance matrix is an n x n matrix) |
condvals |
Either a single value |
ar |
Vector of auto-regressive coefficients (all roots of AR characteristic polynomial must be outside the unit circle) |
ma |
Vector of moving-average coefficients |
corr |
Logical; if |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.