Clustering

Latent Profile Analysis using MCLUST (in R)

Hi there! This is Jihong. This is a webpage folked from JOSHUA M. ROSENBERG. It aims to provid a very clear example about how to conduct Latent Profile Analysis using MCLUST in r. Import data and load packages library(tidyverse) library(mclust) library(hrbrthemes) # typographic-centric ggplot2 themes data("iris") df <- select(iris, -Species) # 4 variables explore_model_fit <- function(df, n_profiles_range = 1:9, model_names = c("EII", "VVI", "EEE", "VVV")) { x <- mclustBIC(df, G = n_profiles_range, modelNames = model_names) y <- x %>% as.