Analysis of sex ratios in social insects