getStuffForDIC | R Documentation |
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)
sameSigma |
Logical value indicating whether the parameterization with the same variance of errors per component is used. Default: TRUE. |
sameLambda |
Logical value indicating whether the parameterization with same loadings per component is used. Default: FALSE. |
isotropic |
Logical value indicating whether the parameterization with isotropic error variance per component is used. Default: FALSE. |
x_data |
Observed data. |
outputFolder |
Name of the folder where the |
q |
Number of factors. Note that this should coincide with the number of factors in the |
burn |
Discard observations as burn-in period (optional). |
Km |
Number of components in the overfitted mixture model. Note that this should coincide with the same entry in the |
normalize |
Should the observed data be normalized? Note that this should coincide with the same entry in the |
discardLower |
Discard draws with log-likelihood values lower than the specific quantile. This applied only for the DIC computation. |
The information criteria are saved to the informationCriteria_map_model.txt
file in the outputFolder
.
It is well known that DIC tends to overfit, so it advised to compare models with different number of factors using AIC or BIC. The main function of the package uses BIC.
Panagiotis Papastamoulis
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.