set_time_varying_error_model function

set_time_varying_error_model

set_time_varying_error_model

Set a time varying error model per time cutoff

set_time_varying_error_model(model, cutoff, idv = "TIME", dv = NULL)

Arguments

  • model: (Model) Pharmpy model
  • cutoff: (numeric) A cutoff value for idv column
  • idv: (str) Time or time after dose, default is Time
  • dv: (str or Expr or numeric (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_time_varying_error_model(model, cutoff=1.0) model$statements$find_assignment("Y") ## End(Not run)
  • Maintainer: Rikard Nordgren
  • License: LGPL (>= 3)
  • Last published: 2024-12-04