get_par_names {gEcon} | R Documentation |
gecon_model
classThe get_par_names
function allows to
retrieve the names of parameters from objects of gecon_model
class.
get_par_names(model, free_par = TRUE, calibr_par = TRUE)
model |
an object of |
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. |
The function returns a character vector of parameters' names stored in a given object of gecon_model
class.
For details, see gecon_model-class
.
# 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)