BMMposteriori {bayesmix} | R Documentation |
Plot aposteriori probabilities of data points
Description
Given a JAGSrun
object with model of class BMMmodel
the
aposteriori probabilities are determined. If plot=TRUE
, the
resulting object of class BMMposteriori
is plotted.
Usage
BMMposteriori(object, class, caption = NULL, plot = TRUE,
auto.layout = TRUE, ...)
Arguments
object |
a |
class |
a vector of integers indicating for which classes the posterior probabilities shall be plotted. The default is all. |
caption |
captions to appear above the plots. |
plot |
logical indicating if a plot shall be made. |
auto.layout |
logical: if |
... |
further graphical parameters may also be supplied as arguments. |
Details
Given a JAGSrun
object with model of class BMMmodel
the a
posteriori probabilities are calculated for the unique data points
with respect to the components specified by class
.
Value
There is a BMMposteriori
object returned which is a list
including the following components
data |
vector of unique data points. |
post |
a matrix including the posteriori probability of the data points for each class. |
Author(s)
Bettina Gruen