set_estimation_step {pharmr}R Documentation

set_estimation_step

Description

Set estimation step

Sets estimation step for a model. Methods currently supported are: FO, FOCE, ITS, LAPLACE, IMPMAP, IMP, SAEM, BAYES

Usage

set_estimation_step(model, method, idx = 0, ...)

Arguments

model

(Model) Pharmpy model

method

(str) estimation method to change to

idx

(numeric) index of estimation step, default is 0 (first estimation step)

...

Arguments to pass to EstimationStep (such as interaction, evaluation)

Value

(Model) Pharmpy model object

See Also

add_estimation_step

remove_estimation_step

append_estimation_step_options

add_parameter_uncertainty_step

remove_parameter_uncertainty_step

set_evaluation_step

Examples

## Not run: 
model <- load_example_model("pheno")
opts <- list('NITER'=1000, 'ISAMPLE'=100)
model <- set_estimation_step(model, 'IMP', evaluation=TRUE, tool_options=opts)
model$execution_steps[1]

## End(Not run)

[Package pharmr version 1.0.1 Index]