
Summarize pupil response features by subject and trial
Source:R/bayesian_planning_helpers.R
summarize_gazepoint_pupil_response_features.RdExtracts common pupil-response features from sample-level pupil data.
Usage
summarize_gazepoint_pupil_response_features(
data,
pupil,
time,
subject,
trial,
baseline_window,
response_window,
condition = NULL,
interpolated = NULL
)Arguments
- data
A sample-level data frame.
- pupil
Pupil column.
- time
Time column.
- subject
Subject column.
- trial
Trial column.
- baseline_window
Numeric vector of length two.
- response_window
Numeric vector of length two.
- condition
Optional condition column to carry forward.
- interpolated
Optional logical/numeric interpolation flag column.