Factors affecting the sex ratio in large populations