Analysis code written in R

This codefile analyses the raw behavioural data contained in this project (Kievit, Scholte, Waldorp & Borsboom; Inter- and intra-individual differences in fluid reasoning show distinct cortical responses). The raw datafiles should be downloaded into a working directory prior to running this code (ensure updating the 'setwd' line in the code). For introductions to R see http://tryr.codeschool.com/ or http://swirlstats.com/. Try it, it's great.