
Number of Variance Parameters in Gaussian Mixture Models
nVarParams.RdGives the number of variance parameters for parameterizations of the Gaussian mixture model that are used in MCLUST.
Arguments
- modelName
A character string indicating the model. The help file for
mclustModelNamesdescribes the available models.- d
The dimension of the data. Not used for models in which neither the shape nor the orientation varies.
- G
The number of components in the Gaussian mixture model used to compute
loglik.- ...
Catches unused arguments in indirect or list calls via
do.call.
Details
To get the total number of parameters in model, add G*d for the
means and G-1 for the mixing proportions if they are unequal.
Examples
mapply(nVarParams, mclust.options("emModelNames"), d = 2, G = 3)
#> EII VII EEI VEI EVI VVI EEE VEE EVE VVE EEV VEV EVV VVV
#> 1 3 2 4 4 6 3 5 5 7 5 7 7 9