gecon-solution_status {gEcon} | R Documentation |
Functions allowing to check the solution status of gecon_model
objects.
ss_solved(model) re_solved(model)
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.
# 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)