
Classify SCRs into FIR, SIR, and TIR latency intervals
Source:R/eda-intervals-and-kleckner.R
classify_gazepoint_scr_intervals.RdClassifies extracted SCRs into first-, second-, and third-interval response windows based on response latency after stimulus onset.
Arguments
- dat
A data frame containing SCR events or peaks.
- response_time_col
Optional response/peak time column.
- stimulus_onset_col
Optional stimulus-onset column. Required when
latency_colis not supplied.- latency_col
Optional precomputed latency column.
- output_col
Name of the output interval column.
- latency_output_col
Name of the latency output column.
- fir
Numeric vector of length two defining FIR window in seconds.
- sir
Numeric vector of length two defining SIR window in seconds.
- tir
Numeric vector of length two defining TIR window in seconds.