simple_dom {EloRating} | R Documentation |
simple dominance indices
simple_dom(winner, loser, Date = NULL, daterange = NULL)
winner |
character or factor with winner |
loser |
character or factor with winner |
Date |
not yet implemented |
daterange |
not yet implemented |
The indices that are calculated are the following
winprop
the proportion of all interactions won
domover
the proportion of individuals dominated (regardless of whether any interactions may have occured, i.e. the number of individuals dominated is divided by N - 1 for all individuals)
domover_rel
the proportion of individuals dominated with which the focal interacted
a data.frame with one row per individual and several 'simple' dominance indices
xdata <- randomsequence(nID = 10, avgIA = 20, reversals = 0.2)$seqdat
simple_dom(xdata$winner, xdata$loser)