center_group_mean function

Center with respect to group mean