Learn R Programming

stanette (version 2.21.4)

obs.vs.pred: Pointwise comparison between observed data vs. predicted medians.

Description

Plots medians of predictions vs. observations for goodness-of-fit assessment, either for the whole population or for subgroups classified by a given covariate. This function is a generic version of the method plot.gof.pred.obs() for the PMXStanFit class.

Usage

obs.vs.pred(fit, ...)

Arguments

fit

a PMXStanFit object.

...

additional arguments.

Value

No return value, called for side effects

See Also

PMXStanFit for the methods plot.gof.pred.obs().

Examples

Run this code
# 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)
# }

Run the code above in your browser using DataLab