Learn R Programming

SGPR (version 0.1.2)

process.group: Process groupings for a sparse group penalty

Description

A function that checks the group information for possible errors and processes it.

Usage

process.group(group, group.weight)

Value

A structure containing the prepared group structure and, as an attribute, its labels and group weights.

Arguments

group

A vector that specifies the group membership of each variable in X.

group.weight

A vector specifying weights that are multiplied by the group penalty to account for different group sizes.