The forms of selection that take place above the level of individual organisms, influencing the evolution of traits both within and across groups, populations, or species, thereby affecting their survival, proliferation, and long-term persistence.