add_population_parameter {pharmr}R Documentation

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
)

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?

Value

(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)


[Package pharmr version 1.0.1 Index]