Computes compute_lids() for every participant in a batch of pipeline
results and summarises each participant's quality-filtered bouts into a
single row – the LIDS counterpart to study_sleep_metrics() and
study_summary(), making per-participant median cycle length, amplitude,
offset, and slope database-ready for tools like syncR::sync().
Arguments
- results
A named list of
zeitr_resultobjects, as returned byrun_pipeline_batch()orrun_pipeline_native_batch().- min_bouts
integer(1). Minimum number of quality-filtered bouts required for a participant's summary metrics to be reported (rather thanNA, withn_bouts/n_bouts_passingstill populated). Default3.- ...
Forwarded to
compute_lids()for every participant.
Value
A tibble with one row per participant: participant_id,
n_bouts, n_bouts_passing, and (computed only over
passes_quality_filter == TRUE bouts, and only when there are at
least min_bouts of them) period_min_median, amplitude_median,
offset_median, slope_per_60min_median, plus an _iqr variant of
each.
Examples
if (FALSE) { # \dontrun{
results <- run_pipeline_native_batch("recordings/", tz = "America/Sao_Paulo")
study_lids_metrics(results)
} # }