Learn R Programming

EloRating (version 0.46.18)

DS: David's score

Description

calculate David's scores from an interaction matrix

Usage

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

Value

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

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")

Author

Christof Neumann

References

david1987EloRating

gammell2003EloRating

devries2006EloRating

Examples

Run this code
data(bonobos)
DS(bonobos)
DS(bonobos, prop = "Pij")

Run the code above in your browser using DataLab