Skip to contents

Classifies extracted SCRs into first-, second-, and third-interval response windows based on response latency after stimulus onset.

Usage

classify_gazepoint_scr_intervals(
  dat,
  response_time_col = NULL,
  stimulus_onset_col = NULL,
  latency_col = NULL,
  output_col = "scr_interval",
  latency_output_col = "scr_latency_s",
  fir = c(1, 4),
  sir = c(4, 7),
  tir = c(7, 10)
)

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_col is 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.

Value

A data frame with interval labels and latency metadata.