The formation of peer groups with social norms for private contributions to a public good is analyzed in an n-player two stage game. First people choose a peer group, then they choose whether to contribute. The first choice is made through a learning process represented by evolutionary dynamics,...