add_parameter_uncertainty_step#
- pharmpy.modeling.add_parameter_uncertainty_step(model, parameter_uncertainty_method)[source]#
Adds parameter uncertainty step to the final estimation step
- Parameters:
model (Model) – Pharmpy model
parameter_uncertainty_method (str) – Parameter uncertainty method to use
- Returns:
Model – Pharmpy model object
Examples
>>> from pharmpy.modeling import * >>> model = load_example_model("pheno") >>> model = set_estimation_step(model, 'FOCE', parameter_uncertainty_method=None) >>> model = add_parameter_uncertainty_step(model, 'SANDWICH') >>> ests = model.execution_steps >>> ests[0] EstimationStep('FOCE', interaction=True, parameter_uncertainty_method='SANDWICH', ...)