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.
days.distinct
If TRUE, treat each day of data as distinct, i.e. identify activity bouts in day 1, then day 2, etc.; if FALSE, apply algorithm on continuous basis for full monitoring period. Function assumes that first 1440 data points are day 1, next 1440 are day 2, an
skipchecks
If TRUE, function skips error checking code and runs slightly faster.