set_seq_zo_fo_absorption#

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

Set or change to sequential zero order first order absorption rate.

Initial estimate for absorption rate is set the previous rate if available, otherwise it is set to the time of first observation/2.

Currently lagtime together with sequential zero order first order absorption is not supported.

Parameters:

model (Model) – Model to set or change absorption rate

Returns:

Model – Pharmpy model object

Examples

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> model = set_seq_zo_fo_absorption(model)
>>> model.statements.ode_system
Infusion(AMT, admid=1, duration=D1) → DEPOT
┌─────┐     ┌───────┐
│DEPOT│──KA→│CENTRAL│──CL/V→
└─────┘     └───────┘