Learn R Programming

pharmr (version 1.4.0)

evaluate_population_prediction: evaluate_population_prediction

Description

Evaluate the numeric population 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.

This function currently only support models without ODE systems

Usage

evaluate_population_prediction(model, parameters = NULL, dataset = NULL)

Value

(data.frame) Population predictions

Arguments

model

(Model) Pharmpy model

parameters

(list(str=numeric) (optional)) Optional list of parameters and values

dataset

(data.frame (optional)) Optional dataset

See Also

evaluate_individual_prediction : Evaluate the individual prediction

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno_linear")
results <- load_example_modelfit_results("pheno_linear")
pe <- results$parameter_estimates
evaluate_population_prediction(model, parameters=list(pe))
}

Run the code above in your browser using DataLab