Folds observed arrival intervals with missed observations back to their most likely fundamental interval
an object of class
(optional) numeric value with an assumed within-group/subject standard deviation, or '
Arrival intervals containing missed observations are folded to their most likely fundamental interval according to a fit of the distribution of intervals by estinterval.
There is inherent uncertainty on how many missed arrival events an observed interval contains, and therefore to which fundamental interval it should be folded. Intervals folded to the fundamental can therefore introduce extra unexplained variance.
The default is to fold intervals to the
fundamental with the highest probability weight (
take.sample = F). Alternatively, randomly sampled intervals
can be generated, that take into account the probability weights of each possible fold (
take.sample = T).
x are transformed to their fundamental interval according to
i-1 the estimated number of missed observations within the interval. This transformation scales appropriately
with the expected broadening of the standard distributions φ(x | i μ,√ i σ) with
i in intervalpdf.
sigma.within is provided, μ equals the mean arrival rate, estimated by estinterval.
sigma.within is '
sigma.within is estimated using partition.
sigma.within is a user-specified numeric value or '
auto', μ is estimated for each group (
as specified in the group argument of estinterval),
by maximizing the log-likelihood of intervalpdf, with its
data argument equals to the intervals of the group,
sigma argument equal to
sigma.within, and its remaining arguments taken from
Intervals assigned to the
fpp component (see estinterval) are not
folded, and return as
numeric vector with intervals folded into the fundamental interval
1 2 3 4 5 6 7 8
dr=estinterval(goosedrop$interval,group=goosedrop$bout_id) # fold assuming no within-group variation: interval.fundamental=fold(dr) # test whether there is evidence for within-group variation: partition(dr)$`p<alpha` #> TRUE # there is evidence, therefore better to fold # while accounting for within-group variation: interval.fundamental=fold(dr,sigma.within='auto')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.