ds: Get David's Scores of Individuals

Description Usage Arguments Value References Examples

View source: R/ds.R

Description

Get David's Scores of Individuals

Usage

1
ds(m, norm = FALSE, type = "D")

Arguments

m

A matrix with individuals ordered identically in rows and columns.

norm

whether to normalize scores

type

either method="D" for Dij or method="P" for Pij.

Value

a vector of David scores in same order as names of m.

References

Gammell et al, 2003, David's score: a more appropriate dominance ranking method than Clutton-Brock et al.'s index, Animal Behaviour.

Examples

1
2
3
4
5
6
m <- matrix(c(NA,2,30,6,19,122,0,NA,18,
0,19,85,0,1,NA,3,8,84,0,0,0,NA,267,50,0,
0,0,5,NA,10,1,0,4,4,1,NA), ncol=6)  #table 2, Vervaecke et al. 2000  - fleeing in bonobos
ds(m)
ds(m,type="P")
ds(m,norm=TRUE)

jalapic/compete documentation built on Nov. 22, 2017, 2:10 a.m.