Computes a sequence of lambda parameters for the mse sg-LASSO regression
path_calc(
X,
Z,
y,
index,
gamma_w = NULL,
l1_factor = 0,
l21_factor = 0,
dummies_index = 1,
nlam = NULL,
min_frac = NULL
)
T by p data matrix, where t and p respectively denote the sample size and the number of regressors.
dummies matrix left for the interecept.
T by 1 vector of outcome.
p by 1 vector indicating group membership of each covariate.
sg-LASSO mixing parameter. gamma_w = 1
is LASSO and gamma_w = 0
group LASSO.
penalty term on the intercept. Should be left unpenalized, i.e set to zero (default).
penalty term on the intercept. Should be left unpenalized, i.e set to zero (default).
vector indicating dummies group membership. Should be left unspecified, i.e set to one (default).
number of \(\lambda\)'s to use in the regularization path.
the minimum value of the penalty parameter, as a fraction of the maximum value.
lambdas sequence of \(\lambda\) values for fitting.