The model considered is a mixture between a Gaussian and multinomial, with conditional independence between the categorical variables and the quantitative variables. The expectation–maximization (EM) algorithm will be used for inference of the model. The clustering function takes as input: - the data set - the number of clusters - the number of initializations of the EM algorithm (by specifying a default value)
The algorithm returns: - the posterior probabilities for each individual belonging to each online cluster - the partitions estimated by maximum a posteriori - the proportions, means and variance of each cluster - the values of the BIC and ICL criteria In the modelMixte function the variable "Data" needs to contain quantitative and qualitative data or only qualitative data. It doesn't run if the array contains exclusively only quantitative data. Use Kmeans instead for clustering with quantitative data. devtools::install_github("databs1/GMM") #to install the package library(ModeleMix) #load library modelMixte(data,k) vignette("Mixmod") #To see examples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.