Learn R Programming

pharmr (version 1.4.0)

plot_dv_vs_pred: plot_dv_vs_pred

Description

Plot DV vs PRED

Usage

plot_dv_vs_pred(model, predictions, stratify_on = NULL, bins = 8)

Value

(alt.Chart) Plot

Arguments

model

(Model) Pharmpy model

predictions

(data.frame) DataFrame containing the predictions

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_dv_vs_pred(model, res$predictions)
model <- load_example_model("pheno")
res <- load_example_modelfit_results("pheno")
plot_dv_vs_pred(model, res$predictions, 'WGT', bins=4)
}

Run the code above in your browser using DataLab