Usage
coor.test(X, iterations = 1000, less.than.chance = TRUE, parallel = 1, pb = TRUE,
rm.imcomp = FALSE, cutoff = 2, rm.solo = FALSE)
Arguments
X
Data frame containing columns for singing event (sing.event),
individual (indiv), and start and end time of signal (start and end).
iterations
number of iterations for shuffling and calculation of the expected number of overlaps. Default is 1000.
less.than.chance
Logical. If TRUE
the test evaluates whether overlaps occur less often than expected by chance.
If FALSE
the opposite pattern is evaluted (whether overlaps occur more often than expected by chance).
Default is TRUE
.
parallel
Numeric. Controls whether parallel computing is applied.
It specifies the number of cores to be used. Default is 1 (i.e. no parallel computing).
pb
Logical argument to control progress bar. Default is TRUE
. Note that progress bar is only used
when parallel = 1.
rm.imcomp
Logical. If TRUE
removes the events that don't have 2 interacting individuals. Default is
FALSE
.
cutoff
Numeric. Determines the minimum number of signals per individual in a singing event. Events not meeting
this criterium are removed if rm.imcomp is TRUE
. If rm.icomp is FALSE
cutoff is ignored. Default is 2.
Note that randomization tests are not reliable with very small sample sizes. Ideally 10 or more signals per individual
should be available in each singing event.
rm.solo
Logical. Controls if signals that are not intercalated at the start or end of the
sequence are removed (if TRUE
). For instances the sequence of signals A-A-A-B-A-B-A-B-B-B (in which A and B represent different individuals, as in the 'indiv' column) would be subset to
A-B-A-B-A-B. Default is FALSE
.