GARCH Toolbox | ![]() ![]() |
Create or modify GARCH specification structure
Syntax
garchset Spec = garchset Spec = garchset('Parameter1', Value1, 'Parameter2', Value2, ...) Spec = garchset(OldSpec, 'Parameter1', Value1, ...)
Arguments
Parameter1, Parameter2, ... |
String representing the name of a valid parameter field of the output specification structure Spec . Table 3-1, GARCH Specification Parameters below lists the valid parameters. The GARCH Toolbox ignores case for parameter names. |
Value1, Value2, ... |
Value assigned to the corresponding Parameter . |
OldSpec |
(optional) Existing GARCH specification structure. Fields of the structure were previously generated by calling |
Description
garchset
provides the main user interface for specifying a GARCH model, and is the preferred method for creating and modifying GARCH specification structures. Use garchget
to retrieve the values of specification structure parameters.
garchset
(with no input arguments and no output arguments) displays all parameter names and the default values where appropriate.
Spec = garchset
creates a GARCH specification structure Spec
with all fields set to their default settings. This default GARCH specification structure models an observed univariate return series as a constant, C, plus GARCH(1,1) conditionally Gaussian innovations. The C + GARCH(1,1) model is the default model of the GARCH Toolbox. You can use this Spec
as input to garchfit
, but it is invalid as input to garchpred
or garchsim
.
Spec = garchset('Parameter1', Value1, 'Parameter2', Value2, ...)
creates a GARCH specification structure Spec
using the parameter/value pairs specified in the input argument list. The Parameter
part of the pair must be a valid GARCH specification structure field. garchset
assigns the Value
part of the pair to its paired Parameter
field. If you specify coefficient vectors (AR
, MA
, GARCH
, ARCH
) but not their corresponding model orders (R
, M
, P
, Q
), garchset
infers the values of the model orders from the lengths of the coefficient vectors. In all other cases, garchset
sets all parameters you do not specify to their respective defaults. A parameter name needs to include only sufficient leading characters to uniquely identify the parameter.
Spec = garchset(OldSpec, 'Parameter1', Value1, ...)
modifies an existing GARCH specification structure, OldSpec
, by changing the named parameters to the specified values.
Spec |
GARCH specification structure. This structure contains the orders and coefficients (if specified) of the conditional mean and variance specifications of a GARCH model. It also contains the parameters associated with the function fmincon in the MATLAB Optimization Toolbox. |
A GARCH specification structure includes the parameters shown in Table 3-1, GARCH Specification Parameters.
Example
This example creates a GARCH(1,1) model and prints the specification structure. The nested Optimization
structure, shown in the printed specification structure, contains the Display
, MaxFunEvals
, MaxIter
, TolCon
, TolFun
, and TolX
parameters. Use garchget
to retrieve the values of these parameters.
spec = garchset('P',1,'Q',1) % Create a GARCH(P=1,Q=1) model. spec = Comment: 'Mean: ARMAX(0,0,?); Variance: GARCH(1,1)' R: 0 M: 0 P: 1 Q: 1 Distribution: 'Gaussian' C: [] AR: [] MA: [] Regress: [] K: [] GARCH: [] ARCH: [] FixC: [] FixAR: [] FixMA: [] FixRegress: [] FixK: [] FixGARCH: [] FixARCH: [] Optimization: [1x1 struct] spec = garchset(spec,'Q',2) % Change it to a GARCH(P=1,Q=2) % model. spec = Comment: 'Mean: ARMAX(0,0,?); Variance: GARCH(1,2)' R: 0 M: 0 P: 1 Q: 2 Distribution: 'Gaussian' C: [] AR: [] MA: [] Regress: [] K: [] GARCH: [] ARCH: [] FixC: [] FixAR: [] FixMA: [] FixRegress: [] FixK: [] FixGARCH: [] FixARCH: [] Optimization: [1x1 struct]
See Also
garchfit
, garchget
, garchpred
, garchsim
optimset
(in the online MATLAB Function Reference)
![]() | garchpred | garchsim | ![]() |