coresidence: coresidence summary

Description Usage Arguments Details Value See Also Examples

View source: R/coresidence.R

Description

coresidence summary

Usage

1
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

1
2
3
4
5
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)

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