powered by
forc_h function
forc_h(h = 1, n_sim = 200, data_ = NULL, posterior = NULL, matrices = NULL)
a matrix of unconditional forecasts
forecast horizon
length of shock simulation
Optional matrix of data n_var*h+1 x T. If NULL, defaults to matrices$Z
Optional posterior object (default taken from calling environment)
Optional matrices object from gen_mats() (default taken from calling environment)
if (FALSE) { # Example usage for unconditional forecasting forecast <- forc_h(h = 4, n_sim = 1000, posterior = posterior, matrices = matrices) }
Run the code above in your browser using DataLab