set_iiv_on_ruv: set_iiv_on_ruv
Description
Multiplies epsilons with exponential (new) etas.
Initial variance for new etas is 0.09.
Usage
set_iiv_on_ruv(
model,
dv = NULL,
list_of_eps = NULL,
same_eta = TRUE,
eta_names = NULL
)
Value
(Model) Pharmpy model object
Arguments
- model
(Model) Pharmpy model to apply IIV on epsilons.
- dv
(str or Expr or numeric (optional)) Name/names of epsilons to multiply with exponential etas. If NULL, all epsilons will
be chosen. NULL is default.
- list_of_eps
(array(str) or str (optional)) Boolean of whether all RUVs from input should use the same new ETA or if one ETA
should be created for each RUV. TRUE is default.
- same_eta
(logical) Custom names of new etas. Must be equal to the number epsilons or 1 if same eta.
- eta_names
(array(str) or str (optional)) Name or DVID of dependent variable. NULL for the default (first or only)
Examples
Run this codeif (FALSE) {
model <- load_example_model("pheno")
model <- set_iiv_on_ruv(model)
model$statements$find_assignment("Y")
}
Run the code above in your browser using DataLab