simple_dom: simple dominance indices

View source: R/simple_dom.R

simple_domR Documentation

simple dominance indices

Description

simple dominance indices

Usage

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

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

gobbios/EloRating documentation built on July 19, 2024, 4:05 a.m.