Extracts the prototype from each variable group.
proto(X, y, groups, type = c("max", "median"), mu = NULL)The prototypes (variable index) extracted from each group (cluster).
Predictor matrix.
Response matrix with one column.
An group index vector containing the
group number each variable belongs to. For example:
c(1, 1, 1, 1, 1, 2, 2, 2, ...).
Variable groups can be generated by the Fisher optimal
partition algorithm implemented in FOP().
The rule for extracting the prototype.
Possible options are "max" and "median".
The mean value of y for standardization.
Default is NULL, which uses the sample mean of y.