Description Usage Arguments Details Value References Examples
Calculates the percentage of games player i (pi) won over player j (pj) across the interData object. Ties are disregarded in this calculation as per the methods described in Gammel et al. 2003 and de Vries et al. 2006.
1 | Pij(intData)
|
intData |
an object of the class "interData" |
Given two players in interaction data finds the percentage for winning of the first player over of the seconed.
Numeric value reflecting the percentage of time pi beat pj where there was a clear winner. (i.e. no tie)
Gammel et al. (2003) David's Score. Animal Behaviour. de Vries et al (2006). Measuring and testing the steepness of dominance hierarchies. Animal Behaviour.
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 Pij betweeen players in group
Pij (toInterMat (id1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.