Method for constructing fMRI regressors from simultaneously-acquired EEG dataA. For each trial (i), select a training window of EEG data (Xi) with offset τ from the stimulus (or behavioral response). B. Train linear classifier on EEG data within the time window to estimate a set of spatial weights (w) that maximize discrimination of the two conditions (shown using only 2 EEG channels for visualization purposes). C. In addition to traditional event-related average response (ERAR) and reaction time (RT) regressors, construct single-trial EEG variability (STV) regressors by modulating boxcar height with classifier output (y) for each trial. D. This technique is repeated for multiple window offsets spanning the epoch to view temporal progression of discriminating components spanning the trial.