nm.modeltrail.graph: Graphical Bayesian model trail

View source: R/nm.modeltrail.graph.r

nm.modeltrail.graphR Documentation

Graphical Bayesian model trail

Description

Create graphical presentation of Bayesian model building trail. The function reads the iterations from the run.ext file and displays them as densities in a lattice graph

Usage

nm.modeltrail.graph(
  runs,
  path = getOption("nmDir"),
  file.ext = ".ext",
  col.area = gray[5],
  col.mean = red[7],
  col.percentiles = gray[5],
  relabel = NULL,
  strip.size = NULL,
  ...
)

Arguments

runs

charater vector with run rootname (e.g. c("run1","run2","run3"))

path

directory where runs reside

file.ext

file extension of the run.ext file. Defaults to ".ext"

col.area

polygon color of the density plot

col.mean

color of the mean line

col.percentiles

color of the percentile lines

relabel

user-specified labels appearing in the Lattice strips

strip.size

scalar to for the strip size in case strip text is too small ortoo large

...

graphical arguments passed on to the lattice plots

Value

Lattice graph with the distributions of the MCMC Bayesian OFV, supplied with mean line and 2.5th and 97.5th percentiles

See Also

read.ext

Examples

## when there is no Bayesian estimation
nm.modeltrail.graph(runs = c("example1","example2")
                    , relabel = c("structural model", "final covariate model")
                    , file.ext = ".mext"
                    , path = getOption("qpExampleDir")
)

qPharmetra/qpToolkit documentation built on May 24, 2023, 8:52 a.m.