View source: R/RSAVS_Path_PureR.R
RSAVS_Solver_PureR | R Documentation |
This function is implemented purely in R. It carries out robust subgroup
analysis and variable selection simultaneously. And it is the core solver
for RSAVS_Path_PureR
.
RSAVS_Solver_PureR(
y_vec,
x_mat,
l_type = "L1",
l_param = NULL,
p1_type = "S",
p1_param = c(2, 3.7),
p2_type = "S",
p2_param = c(2, 3.7),
const_r123,
const_abc = rep(1, 3),
initial_values,
additional,
tol = 0.001,
max_iter = 10,
cd_max_iter = 1,
cd_tol = 0.001,
phi = 1,
subgroup_benchmark = FALSE,
update_mu = NULL
)
y_vec |
numerical vector of response. n = length(y_vec) is the number of observations. |
x_mat |
numerical matrix of covariates. Each row for one observation and
|
l_type |
character string, type of loss function.
Default value is "L1". |
l_param |
numeric vector containing necessary parameters of the corresponding loss function.
The default value is |
p1_type , p2_type |
a character indicating the penalty types for subgroup identification and variable selection.
Default values for both parameters are "S". |
p1_param , p2_param |
numerical vectors providing necessary parameters for the corresponding penalties.
Default values for both parameters are |
const_r123 |
a length-3 numerical vector, providing the scalars needed in the augmented lagrangian part of the ADMM algorithm |
const_abc |
a length-3 numeric vector, providing the scalars to adjust weight
of regression function, penalty for subgroup identification and penalty for
variable selection in the overall objective function. Defaults to |
initial_values |
list of vector, providing initial values for the algorithm. |
additional |
a list providing additional variables needed during the algorithm. |
tol |
numerical, convergence tolerance for the algorithm. |
max_iter |
integer, max number of iteration during the algorithm. |
cd_max_iter |
integer, max number of iteration during the coordinate descent
update of |
cd_tol |
numerical, convergence tolerance for the coordinate descent part
when updating |
phi |
numerical variable. A parameter needed for mBIC. |
subgroup_benchmark |
bool. Whether this call should be taken as a benchmark of subgroup identification.
If |
update_mu |
list of parameters for updating
Please refer to |
lam1_vec , lam2_vec |
numerical vectors of customized lambda vectors.
For |
min_lam_ratio |
the ratio between the minimal and maximal lambda, equals to (minimal lambda) / (maximal lambda). The default value is 0.03. |
lam1_len , lam2_len |
integers, lengths of the auto-generated lambda vectors. |
RSAVS_Path_PureR
, RSAVS_Path
, RSAVS_LargeN
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.