If nci = FALSE
, the algorithm uses a moving window to go through
every possible interval of length window
in counts
. Any
interval in which no more than tol
counts are non-zero, and those
are still < tol.upper
, is classified as non-wear time.
If nci = TRUE
, non-wear time is classified according to the algorithm
used in the NCI's SAS programs. Briefly, this algorithm defines a non-wear
period as an interval of length window
that starts with a count value
of 0, does not contain any periods with (tol + 1)
consecutive
non-zero count values, and does not contain any counts > tol.upper
.
If these criteria are met, the non-wear period continues until there are
(tol + 1)
consecutive non-zero count values or a single count value >
tol.upper
.