get_par_names {gEcon}R Documentation

Accessing parameter names used by objects of gecon_model class

Description

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

Usage

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

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

[Package gEcon version 1.1.0 Index]