rsd.vs.pred | R Documentation |
Plots lots residuals, calculated as the difference between medians of predictions and observations,
vs. predictions. This function is a generic version of the method plot.gof.pred.rsd()
for the
PMXStanFit
class.
rsd.vs.pred(fit, ...)
fit |
a |
... |
additional arguments. |
No return value, called for side effects
PMXStanFit
for the methods plot.gof.pred.rsd()
.
## Not run: m1 <- PMXStanModel(path = tempfile("pk_m1"), pk.struct = "1-cmpt", compile=TRUE) data("examples_data") dat <- prepareInputData(data.source = d1_nm_poppk, model = m1) fit <- PMXStanFit(m1, dat, iter=100, chains=1) obs.vs.pred(fit, by.cov = "GENDER", type = "categorical", filename = "obs_pred_by_gender.pdf") rsd.vs.pred(fit, by.cov = "GENDER", type = "categorical", filename = "gof_by_gender.pdf") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.