add_predictions function

add_predictions

add_predictions

Add predictions and/or residuals

Add predictions to estimation step.

add_predictions(model, pred)

Arguments

  • model: (Model) Pharmpy model
  • pred: (array(str)) List of predictions (e.g. c('IPRED', 'PRED'))

Returns

(Model) Pharmpy model object

Examples

## Not run: model <- load_example_model("pheno") model$execution_steps[-1].predictions model <- add_predictions(model, c('IPRED')) model$execution_steps[-1].predictions ## End(Not run)

See Also

remove_predictions

remove_residuals

set_estimation_step

add_estimation_step

remove_estimation_step

append_estimation_step_options

add_parameter_uncertainty_step

remove_parameter_uncertainty_step

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