BMMdiag: Plot identifiability diagnostics for JAGSrun object

View source: R/plots.R

BMMdiagR Documentation

Plot identifiability diagnostics for JAGSrun object

Description

Two different plots are currently provided: a plot of different variables against each other and a plot of the same variable against its values in the other classes.

Usage

BMMdiag(object, which = 1:2, variables, ask = interactive(), fct1,
        fct2, xlim, ylim, auto.layout = TRUE, caption = NULL,
        main = "", ...)

Arguments

object

a JAGSrun object with model of class BMMmodel.

which

if only one of the plots is required, specify its number.

variables

if variables is missing, the names are taken from the JAGSrun object.

ask

prompt user before each page of plots

fct1

string: name of transformation function for variable on x-axis.

fct2

string: name of transformation function for variable on y-axis.

xlim

if no range for xlim is specified, a sensible range is taken.

ylim

if no range for ylim is specified, a sensible range is taken.

auto.layout

logical: if TRUE puts each of the two different plots on one figure.

caption

captions to appear above the plots.

main

title to each plot (in addition to the above 'caption').

...

further graphical parameters (see 'plot.xy' and 'par') may also be supplied as arguments.

Details

The plots help determining which variable will induce a unique labelling when taken for ordering of the segments and indicate if the model is overfitted by specifying too many segments.

Author(s)

Bettina Gruen


bayesmix documentation built on April 14, 2023, 12:27 a.m.

Related to BMMdiag in bayesmix...