DYNAMICLINEAR Procedure
Data Table Output
PROC DYNAMICLINEAR can create multiple output data tables. All output data tables are listed in Table 1. The information in these tables is described in the following sections.
DISCOUNTFACTOR Statement
OUTVERIFICATION= Data Table Generated by the Statement
The OUTVERIFICATION= output data table contains the following variables:
FILTER Statement
COVARIANCE= Data Table Generated by the PRIOR=/NAIVEPOSTERIOR=/POSTERIOR= Suboption of the OUTFILTERINFO= Option
The COVARIANCE= output data table contains the following variables:
ID Variablevalue of the variable in the ID statement.
LeadStepvalue of h in the h-step-ahead forecast.
ParmValue_kparameter value for the covariances of the normal-gamma distributions at the time given by the sum of the
ID Variablevalue and theLeadStepvalue. The parameters correspond to those in the local-level simultaneous graphical dynamic linear model in the section Simultaneous Graphical Dynamic Linear Models. The dimension p of the variable is the sum of the number of the variables in the ith variable parental set and 1, and.
RowIDindex of the rows.
VarNamename of the variable that corresponds to the variable in the MODEL statement.
VarIDorder of the variables as they appear in the MODEL statement.
ParmNamename of the parameter.
ParmIDorder of the parameters as they appear in the local-level SGDLM.
GAMMA= Data Table Generated by the PRIOR=/NAIVEPOSTERIOR=/POSTERIOR= Suboption of the OUTFILTERINFO= Option
The GAMMA= output data table contains the following variables:
ID Variablevalue of the variable in the ID statement.
LeadStepvalue of h in the h-step-ahead forecast.
Variable_ivalue of the shape and rate parameters for the normal-gamma distributions at a given time step for the ith variable,
, where m is the number of variables in the MODEL statement. These parameters correspond to the time given by the sum of the
ID Variablevalue and theLeadStepvalue.RowIDindex of the rows.
VarNamename of the parameter. The possible values are shape and rate.
VarIDFactorIDvalue of the parameter. The possible values are 1 and 2.
KLDIVERGENCE= Data Table Generated by the OUTFILTERINFO= Option
The KLDIVERGENCE= output data table contains the following variables:
ID Variablevalue of the variable in the ID statement.
LeadStepvalue of h in the h-step-ahead forecast.
Effective Sample Sizevalue of the effective sample size at a given time step. The value is calculated on the basis of the KL divergence during the importance sampling of posterior updating. For more information about the calculation, see Gruber and West (2016).
KL Divergencevalue of KL divergence at the time given by the sum of the
ID Variablevalue and theLeadStepvalue.
LAMBDA= Data Table Generated by the PREDICTIONSAMPLE=/RECOUPLINGSAMPLE= Suboption of the OUTFILTERINFO= Option
The LAMBDA= output data table contains the following variables:
ID Variablevalue of the variable in the ID statement.
LeadStepvalue of h in the h-step-ahead forecast.
Variable_isamples of the precision parameter for observation errors at a given time step for the ith variable,
, where m is the number of variables in the MODEL statement. The given time step is the sum of the
ID Variablevalue and theLeadStepvalue.RowIDindex of the rows.
MEAN= Data Table Generated by the PRIOR=/NAIVEPOSTERIOR=/POSTERIOR= Suboption of the OUTFILTERINFO= Option
The MEAN= output data table contains the following variables:
ID Variablevalue of the variable in the ID statement.
LeadStepvalue of h in the h-step-ahead forecast.
ParmValueparameter value of the means for the normal-gamma distributions at the time given by the sum of the
ID Variablevalue and theLeadStepvalue.RowIDindex of the rows.
VarNamename of the variable that corresponds to the variable in the MODEL statement.
VarIDorder of the variables as they appear in the MODEL statement.
ParmNamename of the parameter.
ParmIDorder of the parameters as they appear in the local-level simultaneous graphical dynamic linear model in the section Simultaneous Graphical Dynamic Linear Models.
NU= Data Table Generated by the RECOUPLINGSAMPLE= Suboption of the OUTFILTERINFO= Option
The NU= output data table contains the following variables:
ID Variablevalue of the variable in the ID statement.
LeadStepvalue of h in the h-step-ahead forecast.
Variable_isamples of the observation errors at a given time step for the ith variable,
, where m is the number of variables in the MODEL statement. The given time step is the sum of the
ID Variablevalue and theLeadStepvalue.RowIDindex of the rows.
THETA= Data Table Generated by the PREDICTIONSAMPLE=/RECOUPLINGSAMPLE= Suboption of the OUTFILTERINFO= Option
The THETA= output data table contains the following variables:
ID Variablevalue of the variable in the ID statement.
LeadStepvalue of h in the h-step-ahead forecast.
ParmValue_ksamples of the state vectors at the time given by the sum of the
ID Variablevalue and theLeadStepvalue. The dimension p of the variable is the sum of the number of the variables in the ith variable parental set and 1, and.
RowIDindex of the rows.
VarNamename of the variable that corresponds to the variable in the MODEL statement.
VarIDorder of the variables as they appear in the MODEL statement.
FILTER and FORECAST Statements
OUT= Data Table Generated by the Statements
Note: The variable names display a maximum of four decimal places. Any percentile values lower than 0.0001 are replaced by 0.0001 for representation.
In the output table, you might encounter instances where variance values of all variables are listed as 0. This situation typically arises when the NSIMULATIONS= option in the PROC DYNAMICLINEAR statement is set too low; the result is that each CPU thread handles only one job or none at all. Such a scenario can lead to an insufficient number of simulations for accurately estimating variance. To solve this problem, consider increasing the NSIMULATIONS= option value, ensuring that each thread processes a sufficient number of jobs to produce more reliable variance estimates.
The OUT= output data table contains the following variables:
ID Variablevalue of the variable in the ID statement.
LeadStepvalue of h in the h-step-ahead forecast.
Mean_isample mean at a given time step for the ith variable,
, where m is the number of variables in the MODEL statement. These sample means are derived from the prior normal-gamma distributions that correspond to the time given by the sum of the
ID Variablevalue and theLeadStepvalue.Variance_isample variance at a given time step for the ith variable,
, where m is the number of variables in the MODEL statement. Like the sample mean, this variable is calculated using the prior normal-gamma distributions that correspond to the time given by the sum of the
ID Variablevalue and theLeadStepvalue.P_ijjth (
) percentile points at a given time step for the ith variable,
, where m is the number of variables in the MODEL statement. The percentile points are specified by the PERCENT=number-list suboption of the OUT= option, and J is the number of elements in the number-list.
OUTCOVARIANCE= Data Table Generated by the Statements
The OUTCOVARIANCE= output data table contains the following variables:
ID Variablevalue of the variable in the ID statement.
LeadStepvalue of h in the h-step-ahead forecast.
Variable_ithe covariance value at a given time step between the ith and jth variables,
, where m is the number of variables in the MODEL statement. The sample covariance is calculated using the samples in the OUTSIM= output data table.
RowIDindex of the rows.
VarNamename of the variable that corresponds to the variable in the MODEL statement.
VarIDorder of the variables as they appear in the MODEL statement.
OUTSIM= Data Table Generated by the Statements
The OUTSIM= output data table contains the following variables:
ID Variablevalue of the variable in the ID statement.
LeadStepvalue of h in the h-step-ahead forecast.
Variable_isamples of forecasting observations at a given time step for the ith variable,
, where m is the number of variables in the MODEL statement. These sample means are derived from the prior normal-gamma distributions that correspond to the time given by the sum of the
ID Variablevalue and theLeadStepvalue.RowIDindex of the rows.
INITIALDISTRIBUTION Statement
COVARIANCE= Data Table Generated by the OUTVERIFICATION= Option
The COVARIANCE= output data table contains the following variables:
RowIDindex of the rows.
ParmValue_kparameter value for the covariances of the initial normal-gamma distributions. The parameters correspond to those in the local-level simultaneous graphical dynamic linear model in the section Simultaneous Graphical Dynamic Linear Models. The dimension p of the variable is the sum of the number of the variables in the ith variable parental set and 1, and
.
VarNamename of the variable that corresponds to the variable in the MODEL statement.
VarIDorder of the variables as they appear in the MODEL statement.
ParmNamename of the parameter.
ParmIDorder of the parameters as they appear in the local-level SGDLM.
GAMMA= Data Table Generated by the OUTVERIFICATION= Option
The GAMMA= output data table contains the following variables:
MEAN= Data Table Generated by the OUTVERIFICATION= Option
The MEAN= output data table contains the following variables:
RowIDindex of the rows.
ParmValueparameter value of the means for the initial normal-gamma distributions.
VarNamename of the variable that corresponds to the variable in the MODEL statement.
VarIDorder of the variables as they appear in the MODEL statement.
ParmNamename of the parameter.
ParmIDorder of the parameters as they appear in the local-level simultaneous graphical dynamic linear model in the section Simultaneous Graphical Dynamic Linear Models.
PARENTALSET Statement
OUTVERIFICATION= Data Table Generated by the Statement
The OUTVERIFICATION= output data table contains the following variables:
RowIDindex of the rows.
Variable_ivalue of the adjacency matrices for the ith variable,
, where m is the number of variables in the MODEL statement.
VarNamename of the variable that corresponds to the variable in the MODEL statement.
VarIDorder of the variables as they appear in the MODEL statement.