powered by
Adds IIVs to :class:pharmpy.model.
pharmpy.model
Effects that currently have templates are:
Additive (add)
Proportional (prop)
Exponential (exp)
Logit (log)
For all except exponential the operation input is not needed. Otherwise user specified input is supported. Initial estimates for new etas are 0.09.
add_iiv( model, list_of_parameters, expression, operation = "*", initial_estimate = 0.09, eta_names = NULL )
(Model) Pharmpy model object
(Model) Pharmpy model to add new IIVs to.
(array(str) or str) Name/names of parameter to add new IIVs to.
(array(str) or str) Effect/effects on eta. Either abbreviated (see above) or custom.
(str) Whether the new IIV should be added or multiplied (default).
(numeric) Value of initial estimate of parameter. Default is 0.09
(array(str) (optional)) Custom name/names of new eta
add_pk_iiv
add_iov
remove_iiv
remove_iov
if (FALSE) { model <- load_example_model("pheno") model <- remove_iiv(model, "CL") model <- add_iiv(model, "CL", "add") model$statements$find_assignment("CL") }
Run the code above in your browser using DataLab