Learn R Programming

pharmr (version 1.4.0)

evaluate_weighted_residuals: evaluate_weighted_residuals

Description

Evaluate the weighted residuals

The residuals is evaluated at the current model parameter values or optionally at the given parameter values. The residuals 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_weighted_residuals(model, parameters = NULL, dataset = NULL)

Value

(data.frame) WRES

Arguments

model

(Model) Pharmpy model

parameters

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

dataset

(data.frame (optional)) Optional dataset

Examples

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

Run the code above in your browser using DataLab