This function detrends pupil data by fitting a linear model
of pupil_data ~ time, and returning the fitted betas and the residuals
(pupil_data - fitted_values).
This function is called by the exposed wrapper detrend().
This function detrends pupil data by fitting a linear model
of pupil_data ~ time, and returning the fitted betas and the residuals
(pupil_data - fitted_values).
This function is called by the exposed wrapper detrend().