| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Econometrics Toolbox |
| Contents | Index |
| Learn more about Econometrics Toolbox |
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. |
| Spec | A multivariate time series specification structure for an n-dimensional time series process, as created by vgxset. |
| NumParam | Total number of parameters in current model. |
| NumActive | Number of active (unrestricted) parameters in current model. |
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
![]() | vgxar | vgxdisp | ![]() |
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 |