Linear regression function for enabling group support