evaluate_weighted_residuals {pharmr} | R Documentation |
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)
Arguments
model |
(Model) Pharmpy model |
parameters |
(list(str=numeric) (optional)) Optional list of parameters and values |
dataset |
(data.frame (optional)) Optional dataset |
Value
(data.frame) WRES
Examples
## Not run:
model <- load_example_model("pheno_linear")
results <- load_example_modelfit_results("pheno_linear")
parameters <- results$parameter_estimates
evaluate_weighted_residuals(model, parameters=list(parameters))
## End(Not run)
[Package pharmr version 1.0.1 Index]