Learn R Programming

EloRating (version 0.46.8)

h.index: 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)

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.

Details

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

References

appleby1983EloRating

devries1995EloRating

Examples

Run this code
# NOT RUN {
data(bonobos)
h.index(bonobos)

# }

Run the code above in your browser using DataLab