This function computes four information criteria for a given run of the fabMix
algorithm, namely: AIC, BIC, DIC and \(\mbox{DIC}_2\). Given various runs with different number of factors, the selected model corresponds to the one with the smalled value of the selected criterion.
getStuffForDIC(sameSigma, sameLambda, isotropic, x_data, outputFolder, q, burn,
Km, normalize, discardLower)
The information criteria are saved to the informationCriteria_map_model.txt
file in the outputFolder
.
Logical value indicating whether the parameterization with the same variance of errors per component is used. Default: TRUE.
Logical value indicating whether the parameterization with same loadings per component is used. Default: FALSE.
Logical value indicating whether the parameterization with isotropic error variance per component is used. Default: FALSE.
Observed data.
Name of the folder where the fabMix
function has saved its output.
Number of factors. Note that this should coincide with the number of factors in the fabMix
run.
Discard observations as burn-in period (optional).
Number of components in the overfitted mixture model. Note that this should coincide with the same entry in the fabMix
run.
Should the observed data be normalized? Note that this should coincide with the same entry in the fabMix
run. Default value: TRUE.
Discard draws with log-likelihood values lower than the specific quantile. This applied only for the DIC computation.
Panagiotis Papastamoulis