intervalBED: Obtain the intervals formed by the best candidates every day...

View source: R/intervalBEDV1.R

intervalBEDR Documentation

Obtain the intervals formed by the best candidates every day to be considered as time and sleeping in bed

Description

For each day of accelerometry recorded choose an interval as best candidate to be considered as interval in bed, and inside of it, mark another interval as time from first sleep to awake before going out of bed

Usage

intervalBED(
  intervalSIB,
  intervalQuiet,
  distance1 = dminutes(30),
  distance2 = dminutes(5),
  distance3 = dhours(4)
)

Arguments

distance1

distance allowed in SIB intervals to consider that the form part of the same sleep period and not different sleeping periods

distance2

distance allowed in intervalQuiet to connect intervals of low activity, considered as taking part in the same low activity period.

intervalSib

dataframe of intervals considered as SIB

Value

A dataframe of intervals representing the intervals of being bed and sleeping for every day of accelerometry data


fjbaron/accelerator documentation built on July 7, 2023, 6:52 p.m.