Learn R Programming

steepness (version 0.1)

getw2: Individuals' weighted sum of Dij -w2-

Description

Function to obtain individuals' weighted sums of dyadic dominance indices by means of the observed sociomatrix.

Usage

getw2(X)

Arguments

X
Original sociomatrix.

Value

  • w2Individuals' weighted sum of dyadic dominance indices corrected for chance.

Details

getw2 is necessary for the computation of David's scores.

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

getDij, getDS.

Examples

Run this code
X <- matrix(c(0, 1, 2, 1, 0, 1, 3, 1, 0),nrow=3,byrow=TRUE)

Run the code above in your browser using DataLab