Modelling Sex Roles In Animals Using Life-History Traits And Population Characteristics