Learn R Programming

FactoMineR (version 1.34)

HMFA: Hierarchical Multiple Factor Analysis

Description

Performs a hierarchical multiple factor analysis, using an object of class list of data.frame.

Usage

HMFA(X,H,type = rep("s", length(H[[1]])), ncp = 5, graph = TRUE, axes = c(1,2), name.group = NULL)

Arguments

X
a data.frame
H
a list with one vector for each hierarchical level; in each vector the number of variables or the number of group constituting the group
type
the type of variables in each group in the first partition; three possibilities: "c" or "s" for quantitative variables (the difference is that for "s", the variables are scaled in the program), "n" for categorical variables; by default, all the variables are quantitative and the variables are scaled unit
ncp
number of dimensions kept in the results (by default 5)
graph
boolean, if TRUE a graph is displayed
axes
a length 2 vector specifying the components to plot
name.group
a list of vector containing the name of the groups for each level of the hierarchy (by default, NULL and the group are named L1.G1, L1.G2 and so on)

Value

Returns a list including:

References

Le Dien, S. & Pags, J. (2003) Hierarchical Multiple factor analysis: application to the comparison of sensory profiles, Food Quality and Preferences, 18 (6), 453-464.

See Also

print.HMFA, plot.HMFA, dimdesc

Examples

Run this code
data(wine)
hierar <- list(c(2,5,3,10,9,2), c(4,2))
res.hmfa <- HMFA(wine, H = hierar, type=c("n",rep("s",5)))

Run the code above in your browser using DataLab