Perform the following steps to perform model-based clustering:
- First, please install and load the mclust library:
> install.packages("mclust") > library(mclust)
- You can then perform model-based clustering on the customer dataset:
> mb = Mclust(customer) > plot(mb)
- Then, you can press the 1 key to obtain the BIC against a number of components:
- Then, you can press the 2 key to show the classification with regard to different combinations of features: