Products & Services Solutions Academia Support User Community Company

Learn more about Econometrics Toolbox   

vgxcount - Count total and active parameters in multivariate time series model

Synopsis

NumParam = vgxcount(Spec)

[NumParam,NumActive] = vgxcount(Spec)

Description

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.

Input Argument

Spec

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.

Example

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

load vgxexample Spec

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 =

    19

NumActive =

    15
  


Free Interactive Computational Finance CD

View demos and recorded presentations led by industry experts.

Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS