set_iiv_on_ruv function

set_iiv_on_ruv

set_iiv_on_ruv

Multiplies epsilons with exponential (new) etas.

Initial variance for new etas is 0.09.

set_iiv_on_ruv( model, dv = NULL, list_of_eps = NULL, same_eta = TRUE, eta_names = NULL )

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)

Returns

(Model) Pharmpy model object

Examples

## Not run: model <- load_example_model("pheno") model <- set_iiv_on_ruv(model) model$statements$find_assignment("Y") ## End(Not run)

See Also

set_power_on_ruv

  • Maintainer: Rikard Nordgren
  • License: LGPL (>= 3)
  • Last published: 2024-12-04