evaluate_individual_prediction function

evaluate_individual_prediction

evaluate_individual_prediction

Evaluate the numeric individual prediction

The prediction is evaluated at the current model parameter values or optionally at the given parameter values. The evaluation is done for each data record in the model dataset or optionally using the dataset argument. The evaluation is done at the current eta values or optionally at the given eta values.

This function currently only support models without ODE systems

evaluate_individual_prediction( model, etas = NULL, parameters = NULL, dataset = NULL )

Arguments

  • model: (Model) Pharmpy model
  • etas: (data.frame (optional)) Optional list of eta values
  • parameters: (list(str=numeric) (optional)) Optional list of parameters and values
  • dataset: (data.frame (optional)) Optional dataset

Returns

(data.frame) Individual predictions

Examples

## Not run: model <- load_example_model("pheno_linear") results <- load_example_modelfit_results("pheno_linear") etas <- results$individual_estimates evaluate_individual_prediction(model, etas=etas) ## End(Not run)

See Also

evaluate_population_prediction : Evaluate the population prediction

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