DS: calculate David's scores

Description Usage Arguments Value Author(s) References Examples

View source: R/DS.R

Description

calculate David's scores

Usage

1
DS(interactionmatrix, prop=c("Pij", "Dij"))

Arguments

interactionmatrix

square interaction matrix with winner in rows and losers in columns, for example the output from creatematrix

prop

the type of dyadic win proportion to be use. By default corrected for number of interactions in a dyad, otherwise the raw proportion

Value

a data.frame with columns ID, DS (David's scores) and normDS (normalized David's scores)

Author(s)

Christof Neumann

References

David, H. A. 1987. Ranking from unbalanced paired-comparison data. Biometrika, 74, 432-436.

Gammell, M. P., de Vries, H., Jennings, D. J., Carlin, C. M. and Hayden, T. J. 2003. David's score: a more appropriate dominance ranking method than Clutton-Brock et al.'s index. Animal Behaviour, 66, 601-605.

de Vries, H., Stevens, J. M. G. and Vervaecke, H. 2006. Measuring and testing the steepness of dominance hierarchies. Animal Behaviour, 71, 585-592.

Examples

1
2
3
4
data(adv)
SEQ <- elo.seq(winner=adv$winner, loser=adv$loser, Date=adv$Date)
mat <- creatematrix(SEQ)
DS(mat)

EloRating documentation built on May 29, 2017, 7:14 p.m.