Skip to contents

Implementation of the van Hees algorithm of non-wear detection.

Usage

detect_nonwear(data, window1, window2, threshold)

Arguments

data

An impactr_data object, as obtained with read_acc().

window1, window2

Windows size, in minutes, for the non-wear detection algorithm. window2 must be smaller than window1, and window1 must be a multiple of window2.

threshold

Number of axes that need to meet the non-wear criteria.

Value

A named list of length 2 (stage1 and stage2) containing the binary non-wear classification (0 is wear and 1 is non-wear) of each algorithm's stage per window2 blocks.

Details

This is an internal function, designed to be used inside the wrapper function remove_nonwear() that integrates all steps of detection, removal and inspection of accelerometer non-wear time.