g.sib.det: sustiained inactivty bouts detection

View source: R/g.sib.det.R

g.sib.detR Documentation

sustiained inactivty bouts detection

Description

Detects sustiained inactivty bouts. Function not intended for direct use by package user

Usage

  g.sib.det(M, IMP, I, twd = c(-12, 12),
             acc.metric = "ENMO", desiredtz = "",
             myfun=c(), sensor.location = "wrist", params_sleep = c(), zc.scale = 1, ...)

Arguments

M

Object produced by g.getmeta

IMP

Object produced by g.impute

I

Object produced by g.inspectfile

twd

Vector of length 2, indicating the time window to consider as hours relative to midnight.

acc.metric

Which one of the metrics do you want to consider to analyze L5. The metric of interest need to be calculated in M (see g.part1)

desiredtz

See g.part3

myfun

External function object to be applied to raw data. See details applyExtFunction.

sensor.location

Character to indicate sensor location, default is wrist. If it is hip HDCZA algorithm also requires longitudinal axis of sensor to be between -45 and +45 degrees.

params_sleep

See g.part3

zc.scale

Used for zero-crossing counts only. Scaling factor to be applied after counts are calculated (GGIR part 3). See GGIR.

...

Any argument used in the previous version of g.sib.det, which will now be used to overrule the arguments specified with the parameter objects.

Value

  • output = Dataframe for every epoch a classification

  • detection.failed = Boolean whether detection failed

  • L5list = L5 for every day (defined from noon to noon)

Author(s)

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


GGIR documentation built on Oct. 17, 2023, 1:12 a.m.