Learn R Programming

steepness (version 0.1)

getl2: Individuals' weighted sum of Dji -l2-

Description

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

Usage

getl2(X)

Arguments

X
Original sociomatrix.

Value

  • l2Individuals' weighted sum of dyadic dominance indices by rows.

Details

getl2 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