DOI: 10.6084/m9.figshare.30327694.v2
title: Data and code for manuscript "The effect of social rank on reproductive traits depends on rank metric: Evidence from a group-living carnivore"

description: Data and code for manuscript "The effect of social rank on reproductive traits depends on rank metric: Evidence from a group-living carnivore". This contains the following files:rank_submission.rprojR project file for easy running of code.R folderContains one R file "models_and_AICc.r". This script loads the required data, runs model sets using glmmTMB, and compares AICc using MuMIn. data folderContains six csv files of the final datasets required to run sets of models. For more detailed information on each variable, see manuscript supplementary information. Each is structured as follows:<b>f_afr_dat.csv</b>ID: anonymised identifier of the focal hyenaafr: age at first reproduction in monthsafr_trans: age at first reproduction having been log transformedord_rank: the ordinal rank of the focal hyena at birthord_delta: the difference in ordinal rank of the focal hyena between birth and one year after birthstd_rank: the standardised rank of the focal hyena at birthstd_delta: the difference in standardised rank of the focal hyena between birth and one year after birthage: age of the focal hyena's mother on the day of the focal hyena's birthtwin_stat: whether the focal hyena was a twin or not, and if so, their within-litter dominance relationshipn_lact: number of lactating females in the clan on the date of birth of the focal hyenamotherID: anonymised identifier of the focal hyena's mother<b>f_cub_surv_dat.csv</b>ID: anonymised identifier of the focal hyenaord_rank: the ordinal rank of the focal hyena on day of her litter birthord_delta: the difference in ordinal rank of the focal hyena between the day of her litter birth and one year after birthstd_rank: the standardised rank of the focal hyena on day of her litter birthstd_delta: the difference in standardised rank of the focal hyena between day of her litter birth and one year after birthsex: the sex of the specific cubsurvived: whether the specific cub survived to one year of age or notage: age of the focal hyena on the day of her litter birthtwin_stat: whether the specific cub was a twin or not, and if so, their within-litter dominance relationshipn_lact: number of lactating females in the clan on the date of birth of the focal hyena's litter<b>f_ibi_dat.csv</b>ID: anonymised identifier of the focal hyenaibi_months: duration of the interbirth interval in monthsibi_trans: duration of the interbirth interval inverse square root transformedord_rank: the ordinal rank of the focal hyena on day of the first birth of the interbirth intervalord_delta: the difference in ordinal rank of the focal hyena between the day of her first and second litter births in the interbirth intervalstd_rank: the standardised rank of the focal hyena on day of the first birth of the interbirth intervalstd_delta: the difference in standardised rank of the focal hyena between the day of her first and second litter births in the interbirth intervalage: age of the focal hyena on the day of the first birth of the interbirth intervallitter_size: whether the litter consisted of a singleton or twins<b>m_afr_dat.csv</b>ID: anonymised identifier of the focal hyenaafr_months: age at first reproduction in monthsafr_trans: age at first reproduction having been log transformedord_rank: the ordinal rank of the focal hyena at birthord_delta: the difference in ordinal rank of the focal hyena between birth and one year after birthstd_rank: the standardised rank of the focal hyena at birthstd_delta: the difference in standardised rank of the focal hyena between birth and one year after birthn_yfem: number of young females (1-5 years old) in clan at time of clan choicetwin_stat: whether the focal hyena was a twin or not, and if so, their within-litter dominance relationshipclan: identifier of focal hyena's chosen clan<b>m_ars_dat.csv</b>ID: anonymised identifier of the focal hyenan_cubs: number of cubs conceived in year of tenureord_rank: the ordinal rank of the focal hyena on the first day of that year of tenureord_delta: the difference in ordinal rank of the focal hyena between first and last days of that year of tenurestd_rank: the standardised rank of the focal hyena on the first day of that year of tenurestd_delta: the difference in standardised rank of the focal hyena between first and last days of that year of tenuren_yfem: number of young females (1-5 years old) in clan at time of clan choicephilo: whether a focal hyena is philopatric or immigrantmat_rank: rank of the focal hyena's mother on the day of the focal hyena's birthtenure_fact: year of tenure in current clan<b>m_materank_dat.csv</b>ID: anonymised identifier of the focal hyenafem_rank: rank of female that cubs were successfully conceived with on day of conceptionord_rank: the ordinal rank of the focal hyena on the day of conception of the litter in questionstd_rank: the standardised rank of the focal hyena on the day of conception of the litter in questionn_yfem: number of young females (1-5 years old) in clan at time of clan choicephilo: whether a focal hyena is philopatric or immigrantmat_rank: rank of the focal hyena's mother on the day of the focal hyena's birthtenure_fact: year of tenure in current clan