wadpac / GGIR

Code corresponding to R package GGIR
https://wadpac.github.io/GGIR/
Apache License 2.0
99 stars 62 forks source link

Issue1043 SPT and ignore nonwear #1067

Closed jhmigueles closed 8 months ago

jhmigueles commented 8 months ago

Closes issue #1043

This PR adds a new option for HASPT.ignore.invalid, if this parameter is set to NA, then invalid time segments are considered no movement for the Sleep Period Time definition. This addresses those scenarios in which participants unexpectedly take off the devices during nigth even though they are not expected to do so, and this also facilitates the SPT definition in day-only study protocols in which devices are taken off during nights.

Checklist before merging:

vincentvanhees commented 8 months ago

I just merged the latest updates in https://github.com/wadpac/GGIR/pull/1063