shock_info: Information about shocks

Description Usage Arguments Value Examples

View source: R/class_model_shock.R

Description

The shock_info function prints information about the model's shocks (occurrence in equations, covariance matrix). It also allows to create an object of the gecon_shock_info class, which stores this information.

Usage

1
shock_info(model, shocks = NULL, all = FALSE)

Arguments

model

an object of gecon_model class.

shocks

the names or indices of shocks of interest.

all

logical value. If TRUE, information about all model shocks is generated (FALSE by default).

Value

An object of the gecon_shock_info-class.

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 model
rbc <- make_model("rbc.gcn")

# set the shock covariance matrix
rbc <- set_shock_cov_mat(rbc, cov_matrix = matrix(0.01, 1, 1),
                         shock_order = "epsilon_Z")

# get information about shocks
shock_info(rbc, all = TRUE)

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

Related to shock_info in gEcon...