10.11: Matlab Scripts For This Chapter
selected template will load here
This action is not available.
I’ve created three scripts for this chapter. The first script is named LRP_RTs.m , and it shows you how to get the single-trial RTs for the trials without artifacts flagged, compute the mean RT for each condition, and save the results to an Excel spreadsheet.
The second script, LRP_scoring.m , shows you how to obtain several of the amplitude and latency scores described in this chapter.
The third script, LRP_bSME.m , demonstrates how to get the SME values for several of the scores. For scores other than mean amplitude, bootstrapping is required (Luck et al., 2021), and we call the result the bootstrapped SME or bSME . The script demonstrates how to implement the bootstrapping procedure and compute the bSME values. Bootstrapping requires re-averaging the data for a given participant many times, and it can be slow. The script is set to do only 100 iterations per participant so that it runs reasonably quickly. There is a variable you can change to a larger value (e.g., 10,000) to get more robust SME estimates.