Dij: Evaluates David adjusted the probability of Winning

Description Usage Arguments Details Value References Examples

Description

Calculates the percentage of games player i (pi) won over player j (pj) across the interMat object adjusted fpr chance. Ties are disregarded in this calculation as per the methods described in Gammel et al. 2003 and de Vries et al. 2006.

Usage

1
Dij(intData)

Arguments

intData

an object of the class "interData"

Details

Given two players in interaction data finds the David adjusted percentage for winning of the first player over of the seconed as per Gammel et al. 2003.

Value

Numeric value reflecting the percentage of time pi beat pj where there was a clear winner (i.e. no tie) adjusted for chance.

References

Gammel et al. (2003) David's Score. Animal Behaviour. de Vries et al (2006). Measuring and testing the steepness of dominance hierarchies. Animal Behaviour.

Examples

1
2
3
4
5
6
7
8
9
# generate generic data
interactions <- data.frame (a = sample (letters [1:10], 100, T),
                            b = sample (letters [1:10], 100, T),
                            o = sample (c(-1,-1,0,1,1), 100, T),
                            d = Sys.time () + runif (100, 40, 160))
# convert to interData object
id1 <- intTableConv (interactions)
# find Dij betweeen players in group
Dij (toInterMat (id1))

nmmarquez/linHierarchy documentation built on May 23, 2019, 9:28 p.m.