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