Following the approach of
Barbosa and Compte (2020), we presented the average curves using folded errors, computed by multiplying trial-wise error by the sign of the trial-wise relative difference in orientations (Δ). The average folded errors were then plotted as a function of absolute values of Δ. For the serial dependence analyses, we used a single-trial, nonlinear, mixed-effects model following the same approach as in
Pascucci et al. (2019). Briefly, individual and single-trial residualized adjustment errors were fitted to the first derivative of a Gaussian (δoG) function with amplitude (α) and width (
w) as free parameters. In the
within-trial analysis, we modeled serial dependence as a function of the inducer color—that is, whether the Gabor stimulus before the last one was of the
target or
non-target color. In doing so, the mixed-effects model included two δoG functions multiplied by a dummy variable coding for the condition (
Pascucci et al., 2019), for a total of four parameters (two amplitudes and widths per condition). All parameters were included as fixed and random effects. The statistical significance of individual parameters and comparisons between parameters were computed employing
t-tests and
z-tests, respectively (
Pascucci et al., 2019). A separate model with a similar structure was used in the analysis of
between-trial serial dependence, with the dummy variable coding whether the color of the previously reported stimulus was the
target as on the present trial or a
non-target. In this latter analysis, responses following trials marked as outliers were also excluded. All mixed-effects models were estimated using
nlmefit.m (with
fminunc as the optimization function) from the Statistics and Machine Learning Toolbox (MATLAB R2021a). Initial parameter guesses were α = 2° and
w = 0.05. Note that, even though the plots were made with smoothed and folded average errors for graphical purposes, the model fit and results were performed on single-trial errors; thus, the smoothing factor and folding procedure did not influence the model results.