get_pert_solution {gEcon}R Documentation

Recursive laws of motion of the model's variables

Description

The get_pert_solution function prints and returns the recursive laws of motion of the model's variables.

Usage

# getting recursive laws of motion
get_pert_solution(model, to_tex = FALSE, silent = FALSE)

Arguments

model

an object of gecon_model class.

to_tex

a logical value. If TRUE, the output is written to a .tex file. The default value is FALSE.

silent

a logical value. If TRUE, console output is suppressed. The default value is FALSE.

Value

A list of P, Q, R, S matrices (P and R only in case of a deterministic model), a vector of variables' steady-state values (ss_val), a vector of flags indicating which variables were log-linearised (loglin), and a vector of indices of state variables (state_ind). P and Q matrices describe the impact of lagged state variables and current values of shocks on current values of state variables. R and S matrices describe the impact of lagged state variables and current values of shocks on current values of non-state (jump) variables.

See Also

solve_pert for the details of finding-a-solution procedure and the description of output which is returned.

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

# find the steady state
rbc <- steady_state(rbc)

# solve the model in log-linearised form and get the results
rbc <- solve_pert(rbc)
get_pert_solution(rbc)

[Package gEcon version 1.2.0 Index]