has_zero_order_elimination#

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

Check if the model describes zero-order elimination

This function relies on heuristics and will not be able to detect all possible ways of coding the zero-order elimination.

Parameters:

model (Model) – Pharmpy model

Returns:

bool – True if model has describes zero order elimination

Examples

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> has_zero_order_elimination(model)
False
>>> model = set_zero_order_elimination(model)
>>> has_zero_order_elimination(model)
True