varControlCreate#
Purpose#
Create a varControl structure with default values.
Format#
- ctl = varControlCreate()#
- Returns:
ctl (struct) –
An instance of a
varControlstructure with the following default values:ctl.p
Scalar, lag order. Default = 1.
ctl.include_const
Scalar, 1 to include a constant (intercept), 0 to exclude. Default = 1.
ctl.quiet
Scalar, set to 1 to suppress printed output. Default = 0.
Examples#
new;
library timeseries;
ctl = varControlCreate();
// Remove the constant
ctl.p = 4;
ctl.include_const = 0;
data = loadd(getGAUSSHome("pkgs/timeseries/examples/macro.dat"));
result = varFit(data, ctl);
Library#
timeseries
Source#
var.src
See also
Functions varFit()