psi.huber | R Documentation |
This function evaluates the first derivative of Huber's loss function.
psi.huber(r, k = 1.345)
r |
A vector of real numbers. |
k |
A positive tuning constant. |
This function evaluates the first derivative of Huber's loss function.
A vector of the same length as r
.
Matias Salibian-Barrera, matias@stat.ubc.ca, Alejandra Martinez
x <- seq(-2, 2, length=10)
psi.huber(r=x, k = 1.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.