Function to get inputs for fused lasso fit
inputs(
Y,
X,
weighting = FALSE,
weights = NULL,
wtype = "size",
buildD = TRUE,
normalize = TRUE
)
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 sample sizes) or `"sizesqrt"`
logical. If TRUE: compute Dmatrix
logical. Whether or not to normalize the weights (currently divides by maximum).
A list with the following components
Response vector
Block diagonal design matrix
Coupling matrix
pxK : indicates corresponding column (in the D-matrix) of each variable in each class