View source: R/Plotting_Functions.R
MoE_plotLogLik | R Documentation |
Plots the log-likelihood at every iteration of the EM/CEM algorithm used to fit a MoEClust mixture model.
MoE_plotLogLik(res,
type = "l",
xlab = "Iteration",
ylab = "Log-Likelihood",
xaxt = "n",
...)
res |
An object of class |
type , xlab , ylab , xaxt |
These graphical parameters retain their usual definitions from |
... |
Catches unused arguments, or additional arguments to be passed to |
A plot of the log-likelihood versus the number EM iterations. A list with the vector of log-likelihood values and the final value at convergence can also be returned invisibly.
plot.MoEClust
is a wrapper to MoE_plotLogLik
which accepts the default arguments, and also produces other types of plots.
res$LOGLIK
can also be plotted, to compare maximal log-likelihood values for all fitted models.
Keefe Murphy - <keefe.murphy@mu.ie>
MoE_clust
, plot.MoEClust
,
data(ais)
res <- MoE_clust(ais[,3:7], gating= ~ BMI, expert= ~ sex, tau0=0.1,
G=2, modelNames="EVE", network.data=ais)
(ll <- MoE_plotLogLik(res))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.