getDij: Dyadic dominance index corrected for chance -Dij-

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Function to obtain matrix of dyadic dominance indices corrected for chance from the observed sociomatrix.

Usage

1

Arguments

X

Empirical sociomatrix containing wins-losses frequencies in dyadic encounters.

names

Character vector with the names of individuals. This vector is NULL by default

Details

getDij is only applied for square matrices in which the set of n actors is also the set of n partners. The matrices must also be numeric.

Value

Dij

Matrix of observed dyadic dominance indices corrected for chance.

Author(s)

David Leiva dleivaur@ub.edu & Han de Vries J.deVries1@uu.nl.

References

de Vries, H., Stevens, J. M. G., & Vervaecke, H. (2006). Measuring and testing the steepness of dominance hierarchies. Animal Behaviour, 71, 585-592.

See Also

steeptest.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
##############################################################################
###               Example taken from Vervaecke et al. (2007):              ###
##############################################################################

X <- matrix(c(0,58,50,61,32,37,29,39,25,8,0,22,22,9,27,20,10,48,
              3,3,0,19,29,12,13,19,8,5,8,9,0,33,38,35,32,57,
              4,7,9,1,0,28,26,16,23,4,3,0,0,6,0,7,6,12,
              2,0,4,1,4,4,0,5,3,0,2,1,1,5,8,3,0,10,3,1,3,0,0,4,1,2,0),
              nrow=9,byrow=TRUE)

individuals <- c("V","VS","B","FJ","PR","VB","TOR","MU","ZV")

res <- getDij(X,individuals)

print(res,digits=3)

steepness documentation built on May 2, 2019, 2:31 p.m.