gecon-solution_status {gEcon}R Documentation

Model solution status

Description

Functions allowing to check the solution status of gecon_model objects.

Usage

ss_solved(model)

re_solved(model)

Arguments

model

an object of the gecon_model class.

Value

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.

Examples

# 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)

[Package gEcon version 1.2.0 Index]