get_confounds_for_step: Calculate confounds for a single pupil data step

View source: R/pipeline-confounds.R

get_confounds_for_stepR Documentation

Calculate confounds for a single pupil data step

Description

Computes various metrics from pupil data including:

  • Blink detection

  • Gaze on/off screen detection

  • Gap analysis

  • Gaze distance from screen center

  • Gaze variance

  • Blink rate

  • Blink duration

  • Blink time

Usage

get_confounds_for_step(pupil_df, pupil_vec, screen_width, screen_height, hz)

Arguments

pupil_df

A data frame containing pupil data

pupil_vec

A vector of pupil data for the current step

screen_width

The screen width in pixels

screen_height

The screen height in pixels

hz

The sampling rate in Hz

Value

A data frame containing confounds metrics for the current step


eyeris documentation built on July 3, 2025, 9:08 a.m.