g.weardec | R Documentation |
Uses the object produced by g.part1 to assess whether the accelerometer was worn
g.weardec(M, wearthreshold, ws2, params_cleaning = NULL,
desiredtz = "", qwindowImp = c())
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 |
params_cleaning |
Parameters object with cleaning paramete, see GGIR. |
desiredtz |
See GGIR |
qwindowImp |
See g.impute |
r1
Participant id extracted from file
r2
Night number
r3
Detected onset of sleep expressed as hours
since the previous midnight
LC
fraction of 15 minute windows with more than 5 percent
clipping
LC2
fraction of 15 minute windows with more than 80
percent clipping
Vincent T van Hees <v.vanhees@accelting.com>
data(data.getmeta)
params_cleaning = load_params()$params_cleaning
params_cleaning[["nonwearFilterWindow"]] = c(22, 7)
output = g.weardec(M = data.getmeta, wearthreshold = 2, ws2 = 900,
params_cleaning = params_cleaning,
desiredtz = "", qwindowImp = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.