Learn R Programming

pharmr (version 1.4.0)

plot_cwres_vs_idv: plot_cwres_vs_idv

Description

Plot CWRES vs idv

Usage

plot_cwres_vs_idv(model, residuals, stratify_on = NULL, bins = 8)

Value

(alt.Chart) Plot

Arguments

model

(Model) Pharmpy model

residuals

(data.frame) DataFrame containing CWRES

stratify_on

(str (optional)) Name of parameter for stratification

bins

(numeric) Number of bins for stratification

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
res <- load_example_modelfit_results("pheno")
plot_cwres_vs_idv(model, res$residuals)
model <- load_example_model("pheno")
res <- load_example_modelfit_results("pheno")
plot_cwres_vs_idv(model, res$residuals, 'WGT', bins=4)
}

Run the code above in your browser using DataLab