inconsis: Counts the inconsitancies of a Dominance Matrix

Description Usage Arguments Value References Examples

Description

Adds the total number of inconsistancies of a dominance matrix ignoring any dyads where there is a tie.

Usage

1
inconsis(domMat)

Arguments

domMat

matrix populated by methods described in Hans de Vries 1998.

Value

numeric of length 1 totaling the number of inconsistancies in matrix.

References

Han de Vries (1998) Finding a Dominance Order Most Consistant with a Linear Hierarchy.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# generate generic data
interactions <- data.frame (a = sample (letters [1:10], 100, T),
                            b = sample (letters [1:10], 100, T),
                            o = sample (c(-1,-1,0,1,1), 100, T),
                            d = Sys.time () + runif (100, 40, 160))
# convert to interData object
id1 <- intTableConv (interactions)
# calculate dominance matrix using all players
dm1 <- toDomMat (id1)
# get inconsitancy number
inconsis (dm1)

nmmarquez/linHierarchy documentation built on May 23, 2019, 9:28 p.m.