Description Usage Arguments Details Value
Given a model structure and a OneStep
object to use as
new data value, create a new design matrix Z_{t} from
Z_{t-1}.
1 | ForecastGibbs(dats_withexo, period, ztprop1, gibbs_mean, gibbs_var)
|
dats_withexo |
the dataset used to create the forecast. It consists of
an enlarged |
period |
the number of years to forecast. As of yet, the function does not support backcasting. |
ztprop1 |
the model structure (a |
gibbs_mean |
the Mean component of the |
gibbs_var |
the Var component of the |
this function operates in three (3) parts:
shift old values of the variables by 1 using the lag operator.
reinsert shifted values in the proper positions of Z_{t}.
replace lag 1 values with values from the OneStep
object.
This produces a design matrix Z_{t} for the forecasted year.
an array with dimensions (<number_of_forecasted_years>, <number_of_equations>, <number_of_iterations_in_Gibbs>).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.