Prepare sgl function arguments using sgldata.
# S3 method for sgldata
prepare.args(data, parameterGrouping = NULL,
groupWeights = NULL, parameterWeights = NULL,
parameterNames = NULL, alpha, test_data = NULL, ...)
a sgldata object
grouping of parameters, a vector of length \(p\). Each element of the vector specifying the group of the parameters in the corresponding column of \(\beta\).
the group weights, a vector of length length(unique(parameterGrouping))
(the number of groups).
a matrix of size \(q \times p\), that is the same dimension as \(\beta\).
dim-names of parameters, if NULL dimnames(parameterWeights)
will be used.
the \(\alpha\) value 0 for group lasso, 1 for lasso, between 0 and 1 gives a sparse group lasso penalty.
optional test data to be prepared (a sgldata object)
not used
Other sgldata: add_data.sgldata
,
create.sgldata
, prepare.args
,
prepare_data
,
rearrange.sgldata
,
subsample.sgldata