informed_ds {DynaRankR} R Documentation

## David's Score method informed by prior information

### Description

Use David's Score method to infer a dominance hierarchy over multiple study periods. New contestants are added according to the convention specified by the user. Scores are calculated using Dij and are normalized. Full description of the addition of new individuals is described in Strauss & Holekamp (in revision). To run the original David's Score procedure, use convention flag 'none'.

### Usage

informed_ds(contestants, convention, initial.ranks = NULL, interactions)


### Arguments

 contestants A dataframe with the identities of the contestants for each study period along with the relevant data for adding them to the hierarchy. There should be one row per contestant per study period. Periods should appear in chronological order. The dataframe should contain the following columns: periodStudy period. idIdentity of contestant. convention1The primary convention by which new individuals are added to the hierarchy. Interpretation of this column varies depending on the value of the convention argument. If convention = none, this column is optional. convention2Optional. The secondary data for resolving ties in convention1. Interpretation of this column varies depending on the value of the convention argument. convention A flag determining how new individuals are added to the hierarchy. The value of this flag influences how the convention1 and convention2 columns of the contestants argument are interpreted. Currently this function supports five options: noneThe standard David's Score procedure (using Dij) is run. Individuals are not added according to prior information and scores are calculated independently for each period. mriNew contestants are added to the hierarchy according to maternal rank inheritance with youngest ascendancy. convention1 should be a vector of mother identities for each contestant. convention2 should be an optional vector of intra-litter ranks (lower numbers = higher rank) for resolving the order of contestants from the same mother joining the hierarchy in the same study period. tenureNew contestants are added to the hierarchy according their tenure in the group. convention1 should be a vector of dates on which each contestant joined the group. convention2 should be an optional vector of numerical data for resolving ties in convention1 (e.g., body size). Higher values are considered higher rank. ageNew contestants are added to the hierarchy according their age (older = higher rank). convention1 should be a vector of birthdates or numerical age classes. convention2 should be an optional vector of numerical data for resolving ties in convention1 (e.g., body size). Higher values are considered higher rank. phys_attrNew contestants are added to the hierarchy according to some physical attribute (larger value = higher rank). convention1 should be a vector of numerical attribute measurements. convention2 should be an optional vector of numerical data for resolving ties in convention1. Higher values are considered higher rank. initial.ranks The initial ordering of individuals for the first study period. Required if using maternal rank inheritance as the convention. For other conventions, if initial.ranks is not specified, the order determined by convention1 is used to create the initial order. interactions A dataframe of interaction data with the following columns: winnerIdentities of winners. loserIdentities of losers. periodStudy period in which interactions occurred.

### Value

Produces a dataframe with the following columns:

period

Study period.

id

Identity of contestant.

score

David's Score of contestant.

rank

Ordinal rank of contestant in study period. Lower numbers equal higher rank.

stan.rank

Rank of contestant standardized for group size. Values range from 1 (highest rank) to -1 (lowest rank).

old.order

Identity of contestants arranged in the previous order (the order they were in before updating the order based on observations from the current study period).

### References

Strauss ED & Holekamp KE (in revision). Journal of Animal Ecology.

de Vries H, Stevens JMG, Vervaecke H (2006). Animal Behavior.

### Examples

##Informed ds
female.ranks <- informed_ds(contestants = C.crocuta.female$contestants, convention = 'mri', initial.ranks = C.crocuta.female$initial.ranks,
interactions = C.crocuta.female$interactions) ##Standard ds female.ranks <- informed_ds(contestants = C.crocuta.female$contestants, convention = 'none',
interactions = C.crocuta.female\$interactions)



[Package DynaRankR version 1.1.0 Index]