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

View source: R/PMXStanFit.R

obs.vs.predR Documentation

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


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)


stanette documentation built on May 11, 2022, 5:11 p.m.