set_initial_estimates#

pharmpy.modeling.set_initial_estimates(model, inits)[source]#

Set initial estimates

Parameters:
  • model (Model) – Pharmpy model

  • inits (dict) – A dictionary of parameter init for parameters to change

Returns:

Model – Pharmpy model object

Examples

>>> from pharmpy.modeling import load_example_model, set_initial_estimates
>>> model = load_example_model("pheno")
>>> model = set_initial_estimates(model, {'PTVCL': 2.0})
>>> model.parameters['PTVCL']
Parameter("PTVCL", 2.0, lower=0.0, upper=∞, fix=False)

See also

fix_parameters_to

Fixing and setting parameter initial estimates in the same function

unfix_paramaters_to

Unfixing parameters and setting a new initial estimate in the same