GM-estimator for weighted regression