remove_error_model#

pharmpy.modeling.remove_error_model(model)[source]#

Remove error model.

Parameters:

model (Model) – Remove error model for this model

Returns:

Model – Pharmpy model object

Examples

>>> from pharmpy.modeling import remove_error_model, load_example_model
>>> model = load_example_model("pheno")
>>> model.statements.find_assignment("Y")
Y = EPS₁⋅F + F
>>> model = remove_error_model(model)
>>> model.statements.find_assignment("Y")
Y = F

Warning

Removing the error model will make the model unrunable for some tools.