Description Usage Arguments Value See Also Examples
View source: R/class_model_par.R
The get_par_names
function allows to
retrieve the names of parameters from objects of gecon_model
class.
1 | 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
.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.