type
the type of residuals to return: "response" is the distance
between observed and predicted values; "rho" is the weighted distance used
to calculate the objective function in the minimisation algorithm as
tau * pmax(resid, 0) + (1 - tau) * pmin(resi