h.index {EloRating}R Documentation

linearity indices

Description

linearity indices

Usage

h.index(interactionmatrix, loops = 1000)

Arguments

interactionmatrix

square interaction matrix with winner in rows and losers in columns, for example the output from creatematrix

loops

numeric, the number of randomizations to perform (by default: 1000)

Details

Note that the expected value of h can also be calculated as 3/(N+1).

Value

a data.frame with with values for the number of individuals in the matrix (N), linearity indices (h, h' and expected h), p-value, number of randomizations, and number of unknown and tied relationships.

Author(s)

Christof Neumann

References

Appleby MC (1983). “The probability of linearity in hierarchies.” Animal Behaviour, 31, 600-608. doi:10.1016/S0003-3472(83)80084-0.

de Vries H (1995). “An improved test of linearity in dominance hierarchies containing unknown or tied relationships.” Animal Behaviour, 50, 1375-1389. doi:10.1016/0003-3472(95)80053-0.

Examples

data(bonobos)
h.index(bonobos)


[Package EloRating version 0.46.18 Index]