## ReadMe ##
This repository provides the data and analysis code from "Attention to object categories: Selection history determines the breadth of attentional tuning during real-world object search."
### Experimental Code ###
Experimental materials are available in the `code` folder. Each experiment has its own folder, including the main .html script and dependent .js files, .css files, and stimulus files in image subfolders. Images are sometimes spread across multiple image subfolders; all subfolders are necessary to run the experiment properly.
### Data, Analysis Scripts, and Figures ###
Data preprocessing, analysis, and figure generation was completed using R.
In the `data_analysis_figures` directory, there is a subdirectory for each experiment. Each participant has a single .txt file in the `data` subfolder of their respective experiment. Preprocessing scripts (e.g., Exp1a_Preprocessing.Rmd) will combine behavioral data from all participants into a combined .csv file (e.g., exp1a_rawData.csv). The combined .csv files generated by the preprocessing R scripts (one per experiment) are what were used in all statistical analyses.
The analysis scripts (e.g., Exp1a_Analysis.Rmd) will then reproduce all statistical results and data figures from the paper. Final figures in the paper, including schematics, were created in PowerPoint and are available in Figures.pptx.
The keys (e.g., variableKeyExp1.csv) for all post-processed variables (e.g, in exp1a_rawData.csv) describe each data column.