Learn R Programming

EloRating (version 0.46.8)

DS: David's score

Description

calculate David's scores from an interaction matrix

Usage

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)

References

david1987EloRating

gammell2003EloRating

devries2006EloRating

Examples

Run this code
# NOT RUN {
data(bonobos)
DS(bonobos)
DS(bonobos, prop = "Pij")

# }

Run the code above in your browser using DataLab