powered by
This function evaluates the first derivative of Huber's loss function.
psi.huber(r, k = 1.345)
A vector of the same length as r.
r
A vector of real numbers.
A positive tuning constant.
Matias Salibian-Barrera, matias@stat.ubc.ca, Alejandra Martinez
x <- seq(-2, 2, length=10) psi.huber(r=x, k = 1.5)
Run the code above in your browser using DataLab