get_ss_values: Variables' steady-state (equilibrium) values

Description Usage Arguments Value Examples

View source: R/class_model_var.R

Description

The get_ss_values function returns (and prints) the steady state/equilibrium of the model.

Usage

1
get_ss_values(model, variables = NULL, to_tex = FALSE, silent = FALSE)

Arguments

model

an object of gecon_model class.

variables

the names or the indices of the variables whose steady-state (equilibrium) values are to be returned. All variables are listed by default.

to_tex

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

silent

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

Value

A numeric vector of the steady-state (equilibrium) values of variables.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# 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 and print the steady-state values
rbc <- steady_state(rbc)
get_ss_values(rbc)
get_ss_values(rbc, variables = c("K_s", "L_s"))

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

Related to get_ss_values in gEcon...