g3_init_guess: Set initial guesses for parameter values in g3_cpp parameter...

View source: R/parameter_template_utils.R

g3_init_guessR Documentation

Set initial guesses for parameter values in g3_cpp parameter template

Description

Set initial guesses for parameter values in g3_cpp parameter template

Usage

g3_init_guess(
  params,
  pattern,
  value = 0,
  lower = -999,
  upper = 999,
  optimise = 0
)

Arguments

params

Parameter template from g3_to_tmb()

pattern

Regular expression of parameter names in template to change

value

Initial value for all parameters matching pattern

lower

Lower bound to set for all parameters matching pattern

upper

Upper bound to set for all parameters matching pattern

optimise

1 if parameters matching pattern should be optimised, zero otherwise.

Value

Updated parameter template


gadget-framework/gadgetutils documentation built on Nov. 11, 2024, 6:25 p.m.