To run the KeshtiariVasishthDataAnalysis.Rnw file, which contains the main data analysis accompanying the paper by Keshtiari and Vasishth entitled ``Reactivation of antecedents by overt versus null pronouns: Evidence from Persian'', do the following on the xterm command line: 

./Sweave.sh KeshtiariVasishthDataAnalysis.Rnw

pdflatex KeshtiariVasishthDataAnalysis.Rnw

Note that you must have R and JAGS installed on your system, and you must install within R the following packages: rjags, MASS, lme4, car, ggplot2, reshape, reshape2, xtable. 

For questions regarding this code, please contact Shravan Vasishth at vasishth@uni-potsdam.de.

Sweave related files:
1. Sweave.sty: style file
2. Sweave.sh: script for compiling the .Rnw file

Code files: 
1. KesthiariVasishthDataAnalysis.Rnw: Sweave file.
2. KesthiariVasishthDataAnalysis.R: R source code.

Data files: 
1. data110.txt contains the 110 subjects' data.
2. Critregions/criticalregions.csv marks the critical region by item

Items files:
1. items.txt has the items in Linger format.
2. items.pdf has the items in pdf format.

