A function that checks the group information for possible errors and processes it.
process.group(group, group.weight)A structure containing the prepared group structure and, as an attribute, its labels and group weights.
A vector that specifies the group membership of each variable in X.
A vector specifying weights that are multiplied by the group penalty to account for different group sizes.