add_estimation_step {pharmr} | R Documentation |
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, ...)
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) |
Value
(Model) Pharmpy model object
See Also
set_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 <- add_estimation_step(model, 'IMP', tool_options=opts)
ests <- model$execution_steps
length(ests)
ests[2]
## End(Not run)
[Package pharmr version 1.0.1 Index]