Fit the multiclass regression estimator
multiclass_reg(
Y,
X,
weighting = FALSE,
weights = NULL,
wtype = "size",
initestim = NULL,
normalize = TRUE,
x_names = NULL,
lambdas = NULL
)
list of size K. Its kth entry is a vector of size n_k
list of size K. Its kth entry is a matrix of size n_kxp
logical. If TRUE: use weighted regularization parameter
provide vector of weights
either "size" (default, weighting based on group samle sizes), "init" (weighting based on initial estimator), "combi" (weighting based on group sample sizes and initial estimator)
pK-dimensional vector with estimated coefficients of initial estimator
logical. Whether or not to normalize the weights (currently divides by maximum).
A list with the following components
fitted genlasso
object
matrix of estimated coefficients
vector of regularization parameters along knots of regularization path
number of classes
number of predictors per class
vector of sample sizes for each class
composite Y vector (stacked over the classes)
block diagonal X matrix (each block coresponds to a class)
matrix of variable indicators