h.index {EloRating} | R Documentation |
linearity indices
h.index(interactionmatrix, loops = 1000)
interactionmatrix |
square interaction matrix with winner in rows and losers in columns, for example the output from |
loops |
numeric, the number of randomizations to perform (by default: 1000) |
Note that the expected value of h can also be calculated as 3/(N+1).
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.
Christof Neumann
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.
data(bonobos)
h.index(bonobos)