Description Slots Methods See Also Examples
The class storing information about shocks selected by the user.
r_object_name
:a character string. The name of an R object of gecon_model
class storing the model for which simulations have been performed.
shocks
:a character vector of shocks' names.
cov_matrix
:a numeric matrix containing columns of shock covariance matrix corresponding to selected shocks.
cov_matrix_flag
:a logical value. Set to TRUE when the user enters non-default data into a covariance matrix of shocks.
incid_mat
:an object of Matrix
class representing the mapping of shocks to equations.
signature(x = "gecon_shock_info")
: Prints all the available information (the incidence matrix, the covariance matrix) about the shocks which were selected when creating a gecon_shock_info-class
object.
signature(object = "gecon_shock_info")
: Prints all the available information (the incidence matrix, the covariance matrix) about the shocks which were selected when creating a gecon_shock_info-class
object.
signature(object = "gecon_shock_info")
: Prints all the available information (the incidence matrix, the covariance matrix) about the shocks which were selected when creating a gecon_shock_info-class
object.
shock_info
creates an object of gecon_shock_info
class.
gecon_var_info-class
and gecon_par_info-class
are
similar classes storing the information about variables and parameters, respectively.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # 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 the model
rbc <- make_model("rbc.gcn")
# solve the model
rbc <- steady_state(rbc)
rbc <- solve_pert(rbc)
rbc <- set_shock_cov_mat(rbc, cov_matrix = matrix(0.01, 1, 1),
shock_order = "epsilon_Z")
rbc <- compute_model_stats(rbc, ref_var = "Y")
# create an object of gecon_shock_info class and display info about the shocks
rbc_shock_info <- shock_info(rbc, all = TRUE)
print(rbc_shock_info)
summary(rbc_shock_info)
show(rbc_shock_info)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.