Learn R Programming

pharmr (version 1.4.0)

add_population_parameter: add_population_parameter

Description

Add a new population parameter to the model

Usage

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

Value

(Model) Pharmpy model object

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?

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
model <- add_population_parameter(model, 'POP_KA', 2)
model$parameters
}

Run the code above in your browser using DataLab