Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
# Instructions for use # This component contains the analysis and plotting scripts for Experiment 3. The scripts are organized into three folders (AnalysisScripts, AnalysisScripts_EyePos, and AnalysisScripts_Supp). Under the heading for each folder there are brief descriptions of what each script does (roughly listed in the order you'd want to run them). ## AnalysisScripts ## This folder contains all the scripts to run the main analyses reported in the paper. **SubList.mat:** a .mat file that contains the list of subjects with usable data. **compileBehavior_JJF_17_4:** compiles relevant variables from raw behavior files (one file for each block of the task) into a single file for each participant. Note: the compiled behavior files are already available in the 'Compiled Data' component. **fitSwapModel:** fit the Bays swap model to the response errors for each subject using MemToolbox (http://visionlab.github.io/MemToolbox/). **summarizeParamEsts:** summarize the parameter estimates (for all subjects) obtained using fitSwapModel in a single matrix. **SpatialEM_v2:** runs the spatial encoding model on alpha-band (8-12 Hz) activity. **SpatialEM_Permute_v2:** runs the relevant spatial encoding model routine 1000 times, each time with the location bin labels permuted within each train/test set. The output of these scripts is the basis for the permutation tests that we report in the paper. **calculateSlopes_Alpha_v2:** cacluate CTF slope matrix for both the unpermuted (output of SpatialEM_v2) and permuted (output SpatialEM_Permute_v2) data. **PermTest_T_Alpha:** uses the output of the calculateSlopes scripts to run the permuation test using the CTF slope metric. **PermTest_NT_Alpha:** same thing for the non-target CTFs. **bootstrapSlopes_v2:** bootstrap standard error bars across time. **resamplingTest_TvsNT:** does the resampling test to test for difference in CTF slopes between the target- and non-target-CTF. Uses output from bootstrapSlopes_v2. **resamplingTest_TvsNT_EarlyWindow:** same as previous script but for an early time window (0-500 ms) **baselinedEOG:** baseline the EOG data. ### Plotting functions ### **plotHEOGBias:** plot the average baselined HEOG as a function of position bin. Uses output from baselinedEOG.m **plotSlopes:** plot the time-resolved slope of target- and non-target-CTFs (Fig 4b). ### Sub-functions called by other scripts ### **eegfilt:** EEGLAB’s filtering function (http://sccn.ucsd.edu/eeglab/; Delorme & Makeig, 2004). Called by the SpatialEM scripts for filtering data. **shadedErrorBar:** used for generating shaded error bars (retrieved from: https://www.mathworks.com/matlabcentral/fileexchange/49382-pict--particle-image-characterization-tool/content/PICT/shadedErrorBar/shadedErrorBar.m) ## AnalysisScripts_EyePos ## This folder contains the scripts used to analyzed the eye tracking data reported in Figure S4 in the Supplemental Information. **EyeTrackSubList:** a .mat file that contains the list of subjects with usable eye tracking data. **EyeTrack_processData:** read in eye tracking data, mark trials with bad eye tracking data (i.e., eye tracker lost the pupil), drift correct the data, save to a file. **EyeTrack_AveByBin:** average eye data for each position bin. **plot_SuppEyeFig:** plot data as in Figure S4 in Supplemental Information. ## AnalysisScripts_Supp ## This folder contains the scripts used to run the supplemental analysis reported in Figure S3 in the Supplemental Information. These functions do the same thing as the corresponding functions in the 'AnalysisScripts' folder with the only difference being trials where the digit in the target item was 7 were excluded from the analysis.
OSF does not support the use of Internet Explorer. For optimal performance, please switch to another browser.
Accept
This website relies on cookies to help provide a better user experience. By clicking Accept or continuing to use the site, you agree. For more information, see our Privacy Policy and information on cookie use.
Accept
×

Start managing your projects on the OSF today.

Free and easy to use, the Open Science Framework supports the entire research lifecycle: planning, execution, reporting, archiving, and discovery.