Computes per-participant summary statistics from a zeitr_study object
(as returned by read_actigraphy_dir()). For each recording, the function
computes NPCRA variables (IS, IV, RA, L5, M10) and basic recording quality
metrics.
Arguments
- study
A
zeitr_studyobject as returned byread_actigraphy_dir(), or a named list ofzeitr_recordingobjects.- epoch_s
numeric(1). Epoch duration in seconds. IfNULL(default), estimated separately for each recording.- L5_hours
numeric(1). Width of the L5 window in hours. Default is5.- M10_hours
numeric(1). Width of the M10 window in hours. Default is10.
Value
A tibble with one row per participant and columns:
participant_idParticipant identifier (filename stem).
n_epochsTotal number of epochs in the recording.
n_daysRecording duration in days.
startPOSIXct— first epoch timestamp.endPOSIXct— last epoch timestamp.ISInterdaily stability.
IVIntradaily variability.
RARelative amplitude.
L5Mean activity in the least active 5 h window.
L5_onsetClock time of L5 midpoint.
M10Mean activity in the most active 10 h window.
M10_onsetClock time of M10 midpoint.
See also
compute_npcra() for single-recording NPCRA, read_actigraphy_dir()
to create a zeitr_study.
Examples
if (FALSE) { # \dontrun{
study <- read_actigraphy_dir("recordings/", tz = "America/Sao_Paulo")
study_summary(study)
} # }