larch.Model.lock_value#

Model.lock_value(name=None, value=None, **kwargs)#

Set a fixed value for a model parameter.

Parameters with a fixed value (i.e., with “holdfast” set to 1) will not be changed during estimation by the likelihood maximization algorithm.

Parameters:
  • name (str) – The name of the parameter to set to a fixed value.

  • value (float) – The numerical value to set for the parameter.

  • **kwargs – Alternatively, use (name=value, …) form for multiple parameters.