g.weardec {GGIR}R Documentation

Detects whether accelerometer is worn

Description

Uses the object produced by g.part1 to assess whether the accelerometer was worn

Usage

  g.weardec(M, wearthreshold, ws2, nonWearEdgeCorrection = TRUE)

Arguments

M

Object produced by g.getmeta

wearthreshold

Number of axis that at least need to meet the non-wear criteria

ws2

Large windowsize used in seconds to apply non-wear detection Small window size not needed, because this is inherent to the object M

nonWearEdgeCorrection

Boolean to indicated whether the EdgeCorrection as described in 2013 should be applied (default = TRUE, which is consistent with how code has been)

Value

Author(s)

Vincent T van Hees <v.vanhees@accelting.com>

Examples

  data(data.getmeta)
  output = g.weardec(M = data.getmeta, wearthreshold = 2, ws2 = 900)

[Package GGIR version 3.1-0 Index]