The effect of group identity in an investment game