Skip to contents

This function updates the parameters of a model object. You can provide new parameter values directly as named arguments via the ellipsis (...).

Usage

set_pars2(model, default_pars = model$getPars(), ...)

Arguments

model

A model object that has getPars() and setPars() methods.

default_pars

An optional named vector representing the default parameters. If not provided, model$getPars() will be used.

...

Named arguments representing the new parameter values to set. These will override existing values in default_pars.

Value

The modified model object with updated parameters.

Details

This function works similar to set_pars, but name = value-pairs can be given directly, without an enclosing combine c().