add_population_parameter function

add_population_parameter

add_population_parameter

Add a new population parameter to the model

add_population_parameter( model, name, init, lower = NULL, upper = NULL, fix = FALSE )

Arguments

  • model: (Model) Pharmpy model
  • name: (str) Name of the new parameter
  • init: (numeric) Initial estimate of the new parameter
  • lower: (numeric (optional)) Lower bound of the new parameter
  • upper: (numeric (optional)) Upper bound of the new parameter
  • fix: (logical) Should the new parameter be fixed?

Returns

(Model) Pharmpy model object

Examples

## Not run: model <- load_example_model("pheno") model <- add_population_parameter(model, 'POP_KA', 2) model$parameters ## End(Not run)
  • Maintainer: Rikard Nordgren
  • License: LGPL (>= 3)
  • Last published: 2024-12-04