Learn R Programming

MoEClust (version 1.4.1)

MoE_plotCrit: Model Selection Criteria Plot for MoEClust Mixture Models

Description

Plots the BIC, ICL, AIC, or log-likelihood values of a fitted MoEClust object.

Usage

MoE_plotCrit(res,
             criterion = c("bic", "icl", "aic", "loglik"),
             ...)

Arguments

res

An object of class "MoEClust" generated by MoE_clust, or an object of class "MoECompare" generated by MoE_compare. Models with a noise component are facilitated here too.

criterion

The criterion to be plotted. Defaults to "bic".

...

Catches other arguments, or additional arguments to be passed to plot.mclustBIC (or equivalent functions for the other criterion arguments). In particular, the argument legendArgs to plot.mclustBIC can be passed.

Value

A plot of the values of the chosen criterion. The values themselves can also be returned invisibly.

See Also

MoE_clust, plot.MoEClust, plot.mclustBIC

Examples

Run this code
# NOT RUN {
# data(ais)
# res   <- MoE_clust(ais[,3:7], expert= ~ sex, network.data=ais)
# (crit <- MoE_plotCrit(res))
# }

Run the code above in your browser using DataLab