powered by
Add a new population parameter to the model
add_population_parameter( model, name, init, lower = NULL, upper = NULL, fix = FALSE )
(Model) Pharmpy model object
(Model) Pharmpy model
(str) Name of the new parameter
(numeric) Initial estimate of the new parameter
(numeric (optional)) Lower bound of the new parameter
(numeric (optional)) Upper bound of the new parameter
(logical) Should the new parameter be fixed?
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