get_par_names: Accessing parameter names used by objects of 'gecon_model'...

Description Usage Arguments Value See Also Examples

View source: R/class_model_par.R

Description

The get_par_names function allows to retrieve the names of parameters from objects of gecon_model class.

Usage

1
get_par_names(model, free_par = TRUE, calibr_par = TRUE)

Arguments

model

an object of gecon_model class.

free_par

logical. If TRUE (default), free parameters' names are added to the vector of parameters' names.

calibr_par

logical. If TRUE (default), calibrated parameters' names are added to the vector of parameters' names.

Value

The function returns a character vector of parameters' names stored in a given object of gecon_model class.

See Also

For details, see gecon_model-class.

Examples

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

# get names of all parameters
get_par_names(rbc)

# get names of free parameters
get_par_names(rbc, calibr_par = FALSE)

# get names of calibrated parameters
get_par_names(rbc, free_par = FALSE)

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

Related to get_par_names in gEcon...