This function is a whole dataset wrapper for Time
Time_long2(count.data, weartime, thresh, smallerthan = TRUE, bout.length = 1)
data.frame
of dimension n*1442 containing the 1440 minute activity data for all n subject days.
The first two columns have to be ID and Day.
data.frame
with dimension of count.data
.
The first two columns have to be ID and Day.
threshold to binarize the data.
Find a state that is smaller than a threshold, or greater than or equal to.
minimum duration of defining an active bout; defaults to 1.
A dataframe with some of the following columns
identifier of the person
indicator of which day of activity it is, can be a numeric vector of sequence 1,2,... or a string of date
time of certain state