check_bk {gEcon} | R Documentation |
The check_bk
function checks the Blanchard-Kahn conditions and prints information about eigenvalues.
check_bk(model)
model |
an object of |
The function checks if the Blanchard-Kahn conditions have been satisfied and prints info about eigenvalues
larger than 1 in modulus and the number of forward looking variables.
Eigenvalues are computed when gEcon
attempts to solve the 1st order perturbation
(solver uses the Lapack zgges
function to compute eigenvalues).
The solve_pert
function must be called before eigenvalues can be retrieved.
Blanchard, O., Kahn C. M. (1980), The Solution of Linear Difference Models under Rational Expectations, Econometrica
# copy the example to the current working directory, process it # and solve for the steady state file.copy(from = file.path(system.file("examples", package = "gEcon"), "rbc.gcn"), to = getwd()) rbc <- make_model("rbc.gcn") rbc <- steady_state(rbc) # solve the model in log-linearised form rbc <- solve_pert(rbc) # check eigenvalues check_bk(rbc)