DS: David's score

View source: R/DS.R

DSR Documentation

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)

Author(s)

Christof Neumann

References

\insertRef

david1987EloRating

\insertRef

gammell2003EloRating

\insertRef

devries2006EloRating

Examples

data(bonobos)
DS(bonobos)
DS(bonobos, prop = "Pij")


gobbios/EloRating documentation built on July 19, 2024, 4:05 a.m.