This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Count VARMAX model parameters


NumParam = vgxcount(Spec)
[NumParam,NumActive] = vgxcount(Spec)


vgxcount counts the total and active parameters in a multivariate time series model.

The total number of parameters in a multivariate time series model includes all parameters in the conditional mean and conditional covariance models. If the innovations process has a full covariance, the total number of parameters is


where n is the number of time series, nAR is the number of autoregressive lag matrices, nMA is the number of moving average lag matrices, and nX is the number of exogenous parameters. If the innovations process has a diagonal covariance, the total number of parameters is


If the model does not have a constant (if Spec.Constant is false), then the total is reduced by n.

    Note:   The innovations covariance matrix is a symmetric matrix with at most n(n + 1)/2 unique elements.

Input Arguments


A multivariate time series specification structure for an n-dimensional time series process, as created by vgxset.

Output Arguments

NumParamTotal number of parameters in current model.
NumActiveNumber of active (unrestricted) parameters in current model.


collapse all

Start with a 2-dimensional VARMA(2, 2) specification structure in Spec:

load Data_VARMA22

Change the model to estimate only the diagonals of the AR matrices and count the total number of parameters in NumParam and the number of unrestricted parameters in NumActive:

Spec = vgxset(Spec,'ARsolve',{logical(eye(2)),logical(eye(2))});

[NumParam, NumActive] = vgxcount(Spec)
NumParam =


NumActive =


Introduced in R2008b

Was this topic helpful?