plot_abs_cwres_vs_ipred: plot_abs_cwres_vs_ipred

View source: R/functions_wrapper.R

plot_abs_cwres_vs_ipredR Documentation

plot_abs_cwres_vs_ipred

Description

Plot \|CWRES\| vs IPRED

Usage

plot_abs_cwres_vs_ipred(
  model,
  predictions,
  residuals,
  stratify_on = NULL,
  bins = 8
)

Arguments

model

(Model) Pharmpy model

predictions

(data.frame) DataFrame containing the predictions

residuals

(data.frame) DataFrame containing the residuals

stratify_on

(str (optional)) Name of parameter for stratification

bins

(numeric) Number of bins for stratification

Value

(alt.Chart) Plot

Examples

## Not run: 
model <- load_example_model("pheno")
res <- load_example_modelfit_results("pheno")
plot_abs_cwres_vs_ipred(model, res$predictions, res$residuals)
model <- load_example_model("pheno")
res <- load_example_modelfit_results("pheno")
plot_abs_cwres_vs_ipred(model, res$predictions, res$residuals, 'WGT', bins=4)

## End(Not run)


pharmpy/pharmr documentation built on Feb. 15, 2025, 3:22 a.m.