DS: David's score

Description Usage Arguments Value Author(s) References Examples

View source: R/DS.R

Description

calculate David's scores from an interaction matrix

Usage

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

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 (prop="Dij"), otherwise the raw proportion (prop="Pij")

Value

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

Author(s)

Christof Neumann

References

\insertRef

david1987EloRating

\insertRef

gammell2003EloRating

\insertRef

devries2006EloRating

Examples

1
2
3
data(bonobos)
DS(bonobos)
DS(bonobos, prop = "Pij")

EloRating documentation built on March 26, 2020, 7:29 p.m.