shock_info {gEcon} | R Documentation |
The shock_info
function prints information about the model's shocks (occurrence in equations, covariance matrix).
It also allows to create an object of the gecon_shock_info
class, which stores this information.
shock_info(model, shocks = NULL, all = FALSE)
model |
an object of |
shocks |
the names or indices of shocks of interest. |
all |
logical value. If TRUE, information about all model shocks is generated (FALSE by default). |
An object of the gecon_shock_info-class
.
# copy the example to the current working directory file.copy(from = file.path(system.file("examples", package = "gEcon"), "rbc.gcn"), to = getwd()) # make and load model rbc <- make_model("rbc.gcn") # set the shock covariance matrix rbc <- set_shock_cov_mat(rbc, cov_matrix = matrix(0.01, 1, 1), shock_order = "epsilon_Z") # get information about shocks shock_info(rbc, all = TRUE)