View source: R/param_info_functions.R
get_params_default | R Documentation |
Extract default values from parameter information
get_params_default(param_info)
param_info |
Information on the parameters to estimate. Either a list containing:
or a named list containing for each parameter:
|
A named vector of default values
# A simple case
param_info <- list(
lb = c(dlaimax = 0.0005, durvieF = 50),
ub = c(dlaimax = 0.0025, durvieF = 400),
default = c(dlaimax = 0.001, durvieF = 200)
)
CroptimizR:::get_params_default(param_info)
# A case with groups of situations per parameter
param_info <- list()
param_info$dlaimax <- list(
sit_list = list(c(
"bou99t3", "bou00t3", "bou99t1", "bou00t1",
"bo96iN+", "lu96iN+", "lu96iN6", "lu97iN+"
)),
lb = 0.0005, ub = 0.0025, default = 0.001
)
param_info$durvieF <- list(
sit_list = list(
c("bo96iN+", "lu96iN+", "lu96iN6", "lu97iN+"),
c("bou99t3", "bou00t3", "bou99t1", "bou00t1")
),
lb = c(50, 100), ub = c(400, 500), default = c(200, 300)
)
CroptimizR:::get_params_default(param_info)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.