4  Observed vs predicted

We define a variable that can be passed as yname, or the name of DV

.yname
[1] "MRG1557 (ng/mL)"

4.1 DV versus PRED [dv_pred]

dv_pred(df, yname = .yname)

4.1.1 Un-fix x- and y-axis limits

By default, pmplots forces the x- and y- scales to have the same limits so you get a square plot. You can prevent this behavior with

dv_pred(df, scales = "free")

If you are faceting, you’ll have to pass scales="free" to both dv_pred() and facet_wrap()

dv_pred(df, scales = "free") + facet_wrap(~RF, scales = "free")

DV versus PRED - log/log

dv_pred(df, loglog=TRUE, yname = .yname)

4.2 DV versus IPRED [dv_ipred]

dv_ipred(df, yname = .yname)

DV versus IPRED - log/log

dv_ipred(df, loglog = TRUE, yname = .yname)

4.3 DV versus both PRED and IPRED [dv_preds]

dv_preds(df, yname = .yname) %>% pm_grid(ncol = 2)