A function that checks arguments about the penalty and translates them to integer (for the C++ code).
process.penalty(penalty, pvar, pgr, vargamma, grgamma, vartau, grtau, alpha)A list of two integers indicating the penalty for the C++ code.
A string that specifies the sparse group penalty to be used.
A string that specifies the penalty used at the variable level.
A string that specifies the penalty used at the group level.
An integer that defines the value of gamma for the penalty at the variable level.
An integer that specifies the value of gamma for the penalty at the group level.
An integer that defines the value of tau for the penalty at the variable level.
An integer that specifies the value of tau for the penalty at the group level.
Tuning parameter for the mixture of penalties at group and variable level. A value of 0 results in a selection at group level, a value of 1 results in a selection at variable level and everything in between is bi-level selection.