Description Usage Arguments Value Examples
View source: R/class_model_shock.R
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.
1 | 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
.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.