Description Slots Methods See Also Examples
The class storing information about variables selected by the user.
r_object_name
:a character string. The name of an R object of gecon_model
class storing the model from which the information about variables comes from.
variables
:a character vector of selected variables' names.
is_stochastic
:logical. Set to TRUE, if the model, based on which the info was generated, has stochastic shocks.
is_dynamic
:logical. Set to TRUE, if the model, based on which the info was generated, has any lead or lagged variables.
ss_solved
:logical. Set to TRUE, if the steady state/equilibrium of the model has been found.
re_solved
:logical. Set to TRUE, if the model, based on which the info was generated, has been solved.
corr_computed
:logical. Set to TRUE, if correlations and other statistics of variables have been computed.
ss_val
:a vector of the steady-state (dynamic models) or equilibrium (static models) values of selected variables. If the steady state has not been computed, the vector contains initial values of variables.
state
:a logical vector of length equal to the number of selected variables. A TRUE entry denotes that a corresponding variable is a state variable.
state_var_impact
:the rows of the matrices P and R of state space representation corresponding to selected variables.
shock_impact
:the rows of the matrices Q and S of state space representation corresponding to selected variables.
std_dev_val
:a numeric vector of standard deviations of selected variables.
loglin_flag
:a logical vector of length equal to the number of selected variables. A TRUE entry denotes that a corresponding variable was log-linearised before solving the model.
cr
:a matrix containing the correlations of selected variables with all model variables.
incid_mat
:an object of Matrix
class representing the mapping of variables to model equations and calibrating equations.
signature(x = "gecon_var_info")
: Prints all the available information (values, statistics, incidence matrix, etc.) about the variables, which were selected when creating a gecon_var_info-class
object.
signature(object = "gecon_var_info")
: Prints all the available information (values, statistics, incidence matrix, etc.) about the variables, which were selected when creating a gecon_var_info-class
object.
signature(object = "gecon_var_info")
: Prints all the available information (values, statistics, incidence matrix, etc.) about the variables, which were selected when creating a gecon_var_info-class
object.
var_info
creates an object of gecon_var_info
class.
gecon_shock_info-class
and gecon_par_info-class
are
similar classes storing the information about shocks and parameters, respectively.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # 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")
# compute the steady state
rbc <- steady_state(rbc)
rbc <- solve_pert(rbc)
rbc_var_info <- var_info(rbc, all = TRUE)
print(rbc_var_info)
summary(rbc_var_info)
show(rbc_var_info)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.