gecon-solution_status: Model solution status

Description Usage Arguments Value Examples

Description

Functions allowing to check the solution status of gecon_model objects.

Usage

1
2
3
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

 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)

gEcon documentation built on May 2, 2019, 6:52 p.m.