Learn R Programming

EloRating (version 0.46.8)

.incon: number of inconsistencies

Description

calculate number of inconsistencies

Usage

.incon(mat)

Arguments

mat

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

Value

integer, the number of inconsistencies in the matrix

References

de Vries, H. 1998. Finding a dominance order most consistent with a linear hierarchy: a new procedure and review. Animal Behaviour, 55, 827-843. (DOI: 10.1006/anbe.1997.0708)

Examples

Run this code
# NOT RUN {
data(bonobos)
EloRating:::.incon(bonobos)

# }

Run the code above in your browser using DataLab