plot_cwres_vs_idv {pharmr}R Documentation

plot_cwres_vs_idv

Description

Plot CWRES vs idv

Usage

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

Arguments

model

(Model) Pharmpy model

residuals

(data.frame) DataFrame containing CWRES

stratify_on

(str) 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_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)

## End(Not run)


[Package pharmr version 1.0.1 Index]