psi.huber.RdThis 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. |
A vector of the same length as x.
This function evaluates the first derivative of Huber's loss function.
Matias Salibian-Barrera, matias@stat.ubc.ca, Alejandra Martinez
#> [1] -1.5000000 -1.5000000 -1.1111111 -0.6666667 -0.2222222 0.2222222 #> [7] 0.6666667 1.1111111 1.5000000 1.5000000