View source: R/pre_define_functions.r
RSAVS_Further_Improve | R Documentation |
This function carries out the post-selection estimation given the model structure.
RSAVS_Further_Improve(
y_vec,
x_mat,
l_type = "L1",
l_param = NULL,
mu_vec,
beta_vec
)
y_vec |
numeric vector for response.
|
x_mat |
numeric matrix for covariates. Each row is for one observation.
|
l_type |
character, type of loss function.
The default value is "1". |
l_param |
vector of parameters needed by the loss function.
For Huber loss, |
mu_vec |
a length-n vector for subgroup effect. The function uses this to determine the subgroup structure. |
beta_vec |
a length-p vector for covariate effect. The function uses this to find the active covariates. |
This function uses mu_vec
to determine the subgroup structure matrix
via RSAVS_Mu_to_Mat
. The active covariates are those with non-zero
beta_vec
entries.
Since this is the post-selection estimation. It's a regular estimate without any penalties. One should make sure the given model structure is identifiable.
a list containing the improved mu(mu_vec) and beta(beta_vec) vector.
RSAVS_Mu_to_Mat
for getting the subgroup index matrix
from the subgroup effect vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.