set_init_values: Set initial values in param_info

View source: R/param_info_functions.R

set_init_valuesR Documentation

Set initial values in param_info

Description

Set initial values in param_info

Usage

set_init_values(param_info, init_values)

Arguments

param_info

Information on the parameters to estimate. Either a list containing:

  • ub and lb, named vectors of upper and lower bounds (-Inf and Inf can be used if init_values is provided),

  • init_values, a data.frame containing initial values to test for the parameters (optional, if not provided, or if less values than number of repetitions of the minimization are provided, the, or part of the, initial values will be randomly generated using LHS sampling within parameter bounds).

or a named list containing for each parameter:

  • sit_list, list the groups of situations for which the current estimated parameter must take different values (see here for an example),

  • ub and lb, vectors of upper and lower bounds (one value per group),

  • init_values, the list of initial values per group (data.frame, one column per group, optional).

init_values

A data.frame containing the initial values to set in param_info (one column per parameter)

Value

A list similar to param_info but with the new initial values


SticsRPacks/CroptimizR documentation built on Dec. 16, 2024, 11:54 a.m.