Question regarding interpolating or removing invalid pupillometry data
I was reading Methods in cognitive pupillometry: Design, preprocessing, and statistical analysis which uses DataMatrix library to preprocess the pupillometry data, and one question I have is regarding the preprocessing step of detecting blinks and artifacts.
What is the best approach for applying those algorithms, such as blinkreconstruct()? Should these algorithms be applied to the entire pupillometry data of an experiment or to each block or trial separately, and are there any differences between these approaches?
Thank you all in advance!