I have an eye-tracker dataset that includes pupil size information. The data was recorded primarily for examining eye movements and fixations, but I am interested in looking into whether the pupil size data says anything interesting about cognitive effort during a peripheral detection task. However, I am relatively new to pupillometry and having read some of the literature around pupil dilation and cognitive effort/attention, I can't identify a standard approach to cleaning and analysing a pupil size dataset (e.g. how to smooth the data, deal with blinks or missing data, how to identify outlying datapoints etc.). Is there such a standard approach or method?