View source: R/SupportFunctions.R
Huber_grid | R Documentation |
Huber_grid(z, M)
z |
Input value z. |
M |
Shape parameter, which is defaulted to be one-tenth of the interquartile range (IRQ). |
The gridient of Huber function for an input value z
##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (delta, M)
{
ifelse(abs(delta) < M, 2 * delta, 2 * M * sign(delta))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.