getOLSCoef function works properly