For raw triaxial accelerometer data, the default "vanHees2015" method
derives a longitudinal-axis angle at epoch resolution and identifies
periods with no posture change above angle_threshold. For epoch-level data,
provide a precomputed sib column; alternatively, "low_activity" marks
epochs whose conventional activity metric is at or below activity_threshold.
Arguments
- data
Raw triaxial or regular epoch-level data.
- method
SIB method:
"vanHees2015"or"low_activity".- epoch
Raw-data aggregation epoch, in seconds or a string such as
"5 seconds"; seeactibase::acti_standardize_epoch().- time_threshold_minutes, angle_threshold
van Hees posture-change parameters.
- activity_threshold
Low-activity cutoff for epoch data.
- smooth
Smoothing of the raw axes before the angle is computed:
"rollmedian"(the default) takes a five-second rolling median of each axis first, as described by van Hees et al. (2015, 2018) and implemented in GGIR, so angles agree with GGIR'sanglez. Like GGIR, it takes the median over everyfloor(sample_rate / 10)-th sample (every 8th at 85.7 Hz), so the angles change slightly with the sample at which the data start, for example after subsetting."rollmedian_full"takes the five-second median over every sample instead, so the angles do not depend on where the data start, except within 2.5 seconds of either end; it no longer matches GGIR exactly."none"computes the angle from each raw sample, as in actisomni 0.3.0 and earlier. The median is taken over samples, not time, so both rolling medians warn when the timestamps have gaps; fill or resample such data first.
Examples
# \donttest{
raw <- actiread::acti_read_gt3x(actiread::acti_example_gt3x(), verbose = FALSE)
sib <- acti_sleep_sib(raw)
# }