Description Usage Arguments Value See Also Examples
View source: R/class_model_pert.R
The get_pert_solution
function prints and returns the recursive laws of motion of the model's variables.
1 2 | # getting recursive laws of motion
get_pert_solution(model, to_tex = FALSE, silent = FALSE)
|
model |
an object of |
to_tex |
a logical value. If TRUE, the output is written to a .tex file. The default value is FALSE. |
silent |
a logical value. If TRUE, console output is suppressed. The default value is FALSE. |
A list of P
, Q
, R
, S
matrices
(P
and R
only in case of a deterministic model),
a vector of variables' steady-state values (ss_val
),
a vector of flags indicating which variables were log-linearised (loglin
),
and a vector of indices of state variables (state_ind
).
P
and Q
matrices describe the impact of lagged state variables
and current values of shocks on current values of state variables.
R
and S
matrices describe the impact of lagged state variables
and current values of shocks on current values of non-state (jump) variables.
solve_pert
for the details of finding-a-solution procedure and the description of output which is returned.
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 the model
rbc <- make_model("rbc.gcn")
# find the steady state
rbc <- steady_state(rbc)
# solve the model in log-linearised form and get the results
rbc <- solve_pert(rbc)
get_pert_solution(rbc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.