coresidence | R Documentation |
coresidence summary
coresidence(eloobject)
eloobject |
result from |
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
.
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
presence_summary
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.