remove_covariate_effect#

pharmpy.modeling.remove_covariate_effect(model, parameter, covariate)[source]#

Remove a covariate effect from an instance of pharmpy.model.

Parameters:
  • model (Model) – Pharmpy model from which to remove the covariate effect.

  • parameter (str) – Name of parameter.

  • covariate (str) – Name of covariate.

Returns:

Model – Pharmpy model object

Examples

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> has_covariate_effect(model, "CL", "WGT")
True
>>> model = remove_covariate_effect(model, "CL", "WGT")
>>> has_covariate_effect(model, "CL", "WGT")
False