Set or change parameter values in a model object.
set_pars2.Rd
This function updates the parameters of a model object. You can provide
new parameter values directly as named arguments via the ellipsis (...
).
Arguments
- model
A model object that has
getPars()
andsetPars()
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
.
Details
This function works similar to set_pars
, but name = value
-pairs
can be given directly, without an enclosing combine c()
.