get_pert_solution: Recursive laws of motion of the model's variables

Description Usage Arguments Value See Also Examples

View source: R/class_model_pert.R

Description

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

Usage

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# 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)

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