add_estimation_step function

add_estimation_step

add_estimation_step

Add estimation step

Adds estimation step for a model in a given index. Methods currently supported are: FO, FOCE, ITS, LAPLACE, IMPMAP, IMP, SAEM

add_estimation_step(model, method, idx = NULL, ...)

Arguments

  • model: (Model) Pharmpy model
  • method: (str) estimation method to change to
  • idx: (numeric (optional)) index of estimation step (starting from 0), default is NULL (adds step at the end)
  • ...: Arguments to pass to EstimationStep (such as interaction, evaluation)

Returns

(Model) Pharmpy model object

Examples

## Not run: model <- load_example_model("pheno") opts <- list('NITER'=1000, 'ISAMPLE'=100) model <- add_estimation_step(model, 'IMP', tool_options=opts) ests <- model$execution_steps length(ests) ests[2] ## End(Not run)

See Also

set_estimation_step

remove_estimation_step

append_estimation_step_options

add_parameter_uncertainty_step

remove_parameter_uncertainty_step

set_evaluation_step

  • Maintainer: Rikard Nordgren
  • License: LGPL (>= 3)
  • Last published: 2024-12-04