R/quantile_genlasso.R
quantile_genlasso_grid.RdConvenience function for computing quantile generalized lasso solutions on a tau by lambda grid.
quantile_genlasso_grid(
x,
y,
d,
tau,
lambda = NULL,
nlambda = 30,
lambda_min_ratio = 0.001,
weights = NULL,
intercept = TRUE,
standardize = TRUE,
lb = -Inf,
ub = Inf,
lp_solver = c("glpk", "gurobi"),
time_limit = NULL,
warm_starts = TRUE,
params = list(),
transform = NULL,
inv_trans = NULL,
jitter = NULL,
verbose = FALSE
)Number of lambda values to consider, for each quantile level. Default is 30.
Ratio of the minimum to maximum lambda value, for each quantile levels. Default is 1e-3.
This function forms a lambda vector either determined by the
nlambda and lambda_min_ratio arguments, or the lambda
argument; if the latter is specified, then it takes priority. Then, for
each i and j, we solve a separate quantile generalized lasso
problem at quantile level tau[i] and tuning parameter value
lambda[j], using the quantile_genlasso function. All
arguments (aside from nlambda and lambda_min_ratio) are as in
the latter function; noncrossing constraints are disallowed.