set_direct_effect {pharmr} | R Documentation |
set_direct_effect
Description
Add an effect to a model.
Effects are by default using concentratrion, but any user specified variable in the model can be used. Implemented PD models are:
Linear:
(equation could not be rendered, see API doc on website)
Emax:
(equation could not be rendered, see API doc on website)
Step effect:
(equation could not be rendered, see API doc on website)
Sigmoidal:
(equation could not be rendered, see API doc on website)
Log-linear:
(equation could not be rendered, see API doc on website)
(equation could not be rendered, see API doc on website)
Usage
set_direct_effect(model, expr, variable = NULL)
Arguments
model |
(Model) Pharmpy model |
expr |
(str) Name of PD effect function. |
variable |
(str (optional)) Name of variable to use (if NULL concentration will be used) |
Value
(Model) Pharmpy model object
Examples
## Not run:
model <- load_example_model("pheno")
model <- set_direct_effect(model, "linear")
model$statements$find_assignment("E")
## End(Not run)
[Package pharmr version 1.7.2 Index]