calcMSCritMCC(workDir, myLabel = "model choice for ...", H0 = 3,
whatToDoList = c("approxMCL", "approxML", "postMode"))
calcMSCritMCCExt(workDir, NN, myLabel = "model choice for ...",
ISdraws = 3, H0 = 3,
whatToDoList = c("approxMCL", "approxML", "postMode"))
calcMSCritDMC(workDir, myLabel = "model choice for ...",
myN0 = "N0 = ...",
whatToDoList = c("approxMCL", "approxML", "postMode"))
calcMSCritDMCExt(workDir, myLabel = "model choice for ...",
myN0 = "N0 = ...",
whatToDoList = c("approxMCL", "approxML", "postMode"))MSCritTable (see Details), only if whatToDo includes "postMode"MSCritTable (see Details), only if whatToDo includes "approxML"MSCritTable (see Details), only if whatToDo includes "approxMCL"whatToDoList all (available) model selection criteria are calculated (in an
iterative manner). Depending on the entries in this list (whatToDoList) the calculation of (all) these
criteria is based on the MCMC draws (iteration) corresponding to the maximum of the log classification likelihood
("approxMCL"), log likelihood ("approxML") and/or (for the sake of completeness) log posterior density
("postMode").
Note, that the user has to decide which criteria are admissible.
Which criteria needs which maximisation method? The AWE and the logICL are based on the maximum of the (log)
classification likelihood, all the others on the maximum of the (log) likelihood (see References).
By the way, it internally calculates the log-likelihood and related values such as LK (observed
log-likelihood), CLK (classification or complete log-likelihood), CK (classification-type
log-likelihood), EK (entropy term) as well as $d_h$ (number of parameters) which are essential parts of the
model selection criteria.
We calculate the model prior adjusted BIC using
$adjBIC = BIC - 2 H \log(H_0) + 2 log\Gamma(H + 1) + 2 H_0$.
According to the used model type the following criteria are calculated: Bic, adjusted Bic, Aic, Awe, IclBic, Clc,
Dic2, Dic4 and logICL (see References). Furthermore, plots and tables of selected critera are generated (and
plots are also saved in directory workDir).
To document the iteration progress, some information is recorded for each output file (containing an MCMC run) --
depending on maximisation method -- like: a running number, maximisation method, number of cluster/groups, BIC,
adjusted BIC, AIC, AWE, CLC, IclBic, DIC2, DIC4a, ICL and additionally adj Rand (which compares the starting with
the final allocation).
For each entry in whatToDo a matrix MSCritTable is produced. Each row represents a processed output
file (containing an MCMC run) and the colums contain:
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
For each entry in whatToDo the corresponding MSCritTable is printed together with the current working
directory and the content of the current whatToDo. Further, plots of the model selection criteria are produced
and saved (with type eps and pdf).
If MCCExt is considered also the number of importance sampling draws ISdraws (necessary for logICL) is
printed.
Additionally, after each iteration the workspace containing the model selection criteria and other stuff is saved to
a .RData-file via save.image within directory workDir.
Finally, a list containing the names of the processed output files (each containing an MCMC run) is printed.classAgreement, savePlot,
mcClust, dmClust, mcClustExtended, dmClustExtended# please run the examples in mcClust, dmClust, mcClustExtended,
# dmClustExtendedRun the code above in your browser using DataLab