add_iiv
Adds IIVs to :class:pharmpy.model
.
Effects that currently have templates are:
For all except exponential the operation input is not needed. Otherwise user specified input is supported. Initial estimates for new etas are 0.09.
Assuming a statement (equation could not be rendered, see API doc on website)
add_iiv( model, list_of_parameters, expression, operation = "*", initial_estimate = 0.09, eta_names = NULL )
model
: (Model) Pharmpy model to add new IIVs to.list_of_parameters
: (array(str) or str) Name/names of parameter to add new IIVs to.expression
: (array(str) or str) Effect/effects on eta. Either abbreviated (see above) or custom.operation
: (str) Whether the new IIV should be added or multiplied (default).initial_estimate
: (numeric) Value of initial estimate of parameter. Default is 0.09eta_names
: (array(str) (optional)) Custom name/names of new eta(Model) Pharmpy model object
## Not run: model <- load_example_model("pheno") model <- remove_iiv(model, "CL") model <- add_iiv(model, "CL", "add") model$statements$find_assignment("CL") ## End(Not run)
add_pk_iiv
add_iov
remove_iiv
remove_iov