flag_valid_adherent_hours: flag_valid_adherent_hours

View source: R/flag_valid_day.R

flag_valid_adherent_hoursR Documentation

flag_valid_adherent_hours

Description

flag_valid_adherent_hours

Usage

flag_valid_adherent_hours(is_wear, is_adherent, minimum_adherent_hours = 10)

Arguments

is_wear

a logic vector with entries for every minute in day. TRUE values correspond to those minutes in the day that are considered to be wear time.

is_adherent

a logic vector indicating minutes in a day that adhere to a study's inclusion criteria.

minimum_adherent_hours

the minimum number of adherent hours required in a day to be considered valid.

Details

Flag valid days using minimum adherent hours criteria

Value

a single boolean indicating whether the minimum adherent hours criteria is satisfied.


audiracmichelle/fitibble documentation built on Feb. 2, 2023, 3:51 p.m.