if (FALSE) {
# Processing time is often longer than ten seconds
# because the function uses a large language model.
library(FactoMineR)
library(NaileR)
data(atomic_habit)
res_mfa <- MFA(atomic_habit[,1:30],
group = c(10,10,10),
type = c("n","s","n"),
num.group.sup = 3,
name.group = c("capable","restrictive", "restrictive binary"),
graph = FALSE)
plot.MFA(res_mfa, choix = "ind", invisible = c("quali","quali.sup"),
lab.ind = FALSE,
title = "MFA based on being capable and restrictiveness data")
res_hcpc <- HCPC(res_mfa, nb.clust = 3, graph = FALSE)
plot.HCPC(res_hcpc, choice = "map",
draw.tree = FALSE,
ind.names = FALSE,
title = "Atomic habits - typology")
summary(res_hcpc$data.clust)
}
Run the code above in your browser using DataLab