
Compute SCR latency metrics from event-locked EDA
Source:R/physiology-qc-refinements.R
compute_gazepoint_scr_latency.RdEstimates onset latency, peak latency, peak amplitude, AUC, and half-recovery latency for each event using a baseline window and response window.
Arguments
- data
Data frame containing EDA/GSR samples.
- events
Event table or numeric event times.
- time_col
Time column in
data.- eda_col
EDA/GSR column.
- event_time_col
Event-time column.
- event_id_col
Event identifier column.
- group_cols
Optional grouping columns used to match events to samples.
- baseline_window_s
Two-element baseline window relative to event.
- response_window_s
Two-element response window relative to event.
- onset_threshold
Minimum increase above baseline used for onset.
- recovery_fraction
Fraction of peak amplitude used for recovery time.