has_covariate_effect#

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

Tests if an instance of pharmpy.model has a given covariate effect.

Parameters:
  • model (Model) – Pharmpy model to check for covariate effect.

  • parameter (str) – Name of parameter.

  • covariate (str) – Name of covariate.

Returns:

bool – Whether input model has a covariate effect of the input covariate on the input parameter.

Examples

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