powered by
Huber Loss
huberloss(r, alpha)
it returns huber loss that will be called in Huber estimation.
residual, y-Xbeta
1/alpha is the huber tuning parameter delta. Larger alpha results in smaller portion of squared loss.