R package for clustering continuous and categorical data, using mixture models.
devtools::install_github("https://github.com/sowb/mixVarClust")
library(mixVarClust)
data("iris")
mod_gaussian <- groupGaussianData(iris[-5], 3, modelType = "diagonal", endIter = FALSE)
## not run
#summaryResults(mod_gaussian)
#plotResults(mod_gaussian, iris)
data("HairEyeColor")
mod_mult <- groupMultinomialData(HairEyeColor, 3, endIter = TRUE)
## not run
#summaryResults(mod_mult)
#plotResults(mod_mult, "HairEyeColor")
data("ToothGrowth")
# mix data, 1 categorical and 2 continuous variables
str(ToothGrowth)
mod_mix <-groupMixData(ToothGrowth, 2, modelType = "spherical")
## not run
#summaryResults(mod_mix)
#plotResults(mod_mix, ToothGrowth)
help(package = mixVarClust)