simple_dom: simple dominance indices

Description Usage Arguments Details Value Examples

View source: R/simple_dom.R

Description

simple dominance indices

Usage

1
simple_dom(winner, loser, Date = NULL, daterange = NULL)

Arguments

winner

character or factor with winner

loser

character or factor with winner

Date

not yet implemented

daterange

not yet implemented

Details

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

Value

a data.frame with one row per individual and several 'simple' dominance indices

Examples

1
2
xdata <- randomsequence(nID = 10, avgIA = 20, reversals = 0.2)$seqdat
simple_dom(xdata$winner, xdata$loser)

EloRating documentation built on March 26, 2020, 7:29 p.m.