RSAVS_Get_Psi | R Documentation |
This function computes the psi_vec needed by the algorithm.
RSAVS_Get_Psi(y_vec, l_type = "L1", l_param = NULL)
y_vec |
numeric vector |
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 |
In the algorithm, when all \mu
are shrinked to the same value, we have
\mu_0 = \mathrm{argmin}_{\mu} \sum_i\rho(y_i - \mu)
and
psi\_vec = (\psi(y_1 - \mu_0), \cdots, \psi(y_n - \mu_0))
where \psi = \partial \rho
.
the psi_vec
there is a SIGN different between this psi_vec
and
\partial \rho
w.r.t \mu
for non-differential loss like L1 at 0, the derivative at 0+ is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.