If nci = FALSE, the algorithm uses a moving window to go through
every possible interval of length bout_length in counts. Any
interval in which all counts are >= tol_lower and <=
tol_upper, and no more than tol counts are less than
thresh_lower or greater than thresh_upper, is classified as an
activity bout.
If nci = TRUE, activity bouts are classified according to the
algorithm used in the NCI's SAS programs. Briefly, this algorithm defines an
activity bout as an interval of length bout_length that starts with a
count value in [thresh_lower, thresh_upper] and has no more than
tol counts outside of that range. If these criteria are met, the bout
continues until there are (tol + 1) consecutive minutes outside of
[thresh_lower, thresh_upper]. The parameters tol_lower and
tol_upper are not used.
If the user allows for a tolerance (e.g. tol = 2) and does not use
the NCI algorithm (i.e. nci = FALSE), specifying a non-zero value for
tol_lower is highly recommended. Otherwise the algorithm will tend to
classify minutes immediately before and after an activity bout as being part
of the bout.
Specifying thresh_lower while using an arbitrarily large value for
thresh_upper is generally recommended. Specifying both of these
parameters can be overly restrictive in that the algorithm may miss bouts of
activity in which counts are consistently high, but not exclusively in one
intensity range.