Description Usage Arguments Value Examples
Functions allowing to check the solution status of gecon_model
objects.
1 2 3 |
model |
an object of the |
ss_solved
TRUE, if the steady state (equilibrium) of the model has been found. FALSE otherwise.
re_solved
TRUE, if the perturbation has been solved. FALSE otherwise.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # 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")
# before the model is solved both return FALSE
ss_solved(rbc)
re_solved(rbc)
# find the steady state
rbc <- steady_state(rbc)
# solve the model in log-linearised form
rbc <- solve_pert(rbc)
get_pert_solution(rbc)
# after the model has been solved both return TRUE
ss_solved(rbc)
re_solved(rbc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.