detect_nonwear: Detection of accelerometer non-wear time

View source: R/non_wear.R

detect_nonwearR Documentation

Detection of accelerometer non-wear time

Description

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.

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.

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.

See Also

plot_nonwear(), mark_nonwear(), summarise_nonwear(), delete_nonwear()


verasls/impactr documentation built on Aug. 14, 2022, 12:44 p.m.