Text this: Robust weights of generalized M-estimator for panel data