coresidence: coresidence summary

View source: R/coresidence.R

coresidenceR Documentation

coresidence summary

Description

coresidence summary

Usage

coresidence(eloobject)

Arguments

eloobject

result from elo.seq

Details

This function provides a summary of the presence of individuals (and dyads) during the data sequence. This will be only informative if there was actually presence information supplied to elo.seq.

Value

a list with three items:

$global (a numeric vector)
n_int

total number of interactions

n_dyads

total number of dyads

prop_nocores

proportion of dyads that were never co-resident

mean_cores_prop

mean proportion over individuals of proportions of all other IDs the focal was co-resident with at some point

$dyads (a data.frame)
id1, id2

the IDs

n_int

number of interactions for dyad

cores_dur

the duration of co-residence

none_dur

the duration for neither ID being present (both are absent)

one_dur

the duration of time when one ID was present but not the other

$individuals (a data.frame)
id

the ID

n_int

number of interactions

presdays

days of presence

cores_n_ind

co-resident with these individuals at some point

cores_prop

proportion of individuals with which ID was co-resident

stints

number of continuous bouts of presence

See Also

presence_summary

Examples

set.seed(123)
IA <- randomsequence(nID = 10, avgIA = 20, presence = c(0.7, 0.8))
SEQ <- elo.seq(winner = IA$seqdat$winner, loser = IA$seqdat$loser, Date = IA$seqdat$Date,
               presence = IA$pres, runcheck = FALSE, progressbar = FALSE)
coresidence(SEQ)

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