BMMdiag {bayesmix} | R Documentation |
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.
BMMdiag(object, which = 1:2, variables, ask = interactive(), fct1, fct2, xlim, ylim, auto.layout = TRUE, caption = NULL, main = "", ...)
object |
a jags 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 jags 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. |
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.
Bettina Gruen