Usage
accel.bouts(counts, weartime = NULL, bout.length = 10, thresh.lower = 0,
thresh.upper = Inf, tol = 0, tol.lower = 0, tol.upper = Inf, nci = FALSE,
days.distinct = FALSE, skipchecks = FALSE)
Arguments
counts
Time series accelerometer counts vector.
weartime
Accelerometer wear time vector; must be same length as counts and consist of 1's and 0's (if specified).
bout.length
Minimum length of an activity bout.
thresh.lower
Lower cut-off for count values in intensity range.
thresh.upper
Upper cut-off for count values in intensity range.
tol
Number of minutes with count values outside of intensity range allowed during an activity bout.
tol.lower
Lower cut-off for count values outside of intensity range during an activity bout.
tol.upper
Upper cut-off for count values outside of intensity range during an activity bout.
nci
If TRUE, use activity bouts algorithm from the NCI's SAS programs [1]; if FALSE, use regular algorithm (see Details).
days.distinct
If TRUE, treat each day of data as distinct, i.e. identify non-wear time and activity bouts in day 1, then day 2, etc.; If FALSE, apply algorithms on continuous basis for full monitoring period. If protocol has participants remove accelerometer for sleep,
skipchecks
If TRUE, function skips error checking code and runs slightly faster.