dominant_class

returns class with the highest weight

weights [ classlist ... ] dominant_class

Arguments
labeltypedescription
weights variable variable of weights in complete disjunctive form
classlist grid set one or more independent variables which list the classes
Returns
classes variable variable in categorical form
dominant_class transforms the variable from complete disjunctive form (a variable of weights (0 to 1) with an independent variable that corresponds to the list of classes) to categorical form (a variable of integer values, numbering the classes from 1 to N) by choosing the class with the highest non-zero weight (first class is used in the case of multiple classes with the same non-zero weight). When multiple independent variables are specified, dominant_class combines the multiple class sets, creating the multivariate class that corresponds to the combination of the class sets.


See also

categorical form: classify
Categorization: classify distrib distrib1D distrib2D
complete disjunctive form: classify