Learn R Programming

pharmr (version 1.4.0)

add_estimation_step: add_estimation_step

Description

Add estimation step

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

Usage

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

Value

(Model) Pharmpy model object

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)

See Also

set_estimation_step

remove_estimation_step

append_estimation_step_options

add_parameter_uncertainty_step

remove_parameter_uncertainty_step

set_evaluation_step

Examples

Run this code
if (FALSE) {
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]
}

Run the code above in your browser using DataLab