README
stevens.etal.2011.FiCS.zip

Created on 1 Apr 2011 by Jeffrey R. Stevens (jeffrey.r.stevens@gmail.com)

This folder (stevens.etal.2011.FiCS.zip) contains all of the files required to analyze the data and generate the manuscript for the following paper:
Stevens, J.R., Volstorf, J., Schooler, L.J., & Rieskamp, J. (2011). Forgetting constrains the emergence of cooperative decision strategies. Frontiers in Psychology, 1, 235.

%%%%%%%%%%%%%%%%%%%%%%%%%%
Files
%%%%%%%%%%%%%%%%%%%%%%%%%%

ms.pdf - PDF of manuscript (generated by compiling ms.Rnw or ms.tex)
ms.Rnw - LaTeX document of manuscript with embedded R code
ms.tex - LaTeX document of manuscript after compiling R code
stevens.etal.2011.FiCS.pdf - final published version of manuscript
stevens_simulationcode.pdf - PDF of Pascal code used for simulations
stevens_simulationcode.txt - Pascal code used for simulations
tft.bib - database of references for bibliography

figures directory - contains PDF files of Figure 1 and figures in supplementary materials.

Rwork directory
stevens_rcode.pdf - PDF of R code used to analyze data and produce graphs
stevens_rcode.R - R code used to analyze data and produce graphs
data directory - contains data files
figures directory - R code places generated figures here


%%%%%%%%%%%%%%%%%%%%%%%%%%
Instructions
%%%%%%%%%%%%%%%%%%%%%%%%%%

To run the R script independently, see instructions in stevens_rcode.R.

To compile the LaTeX document and R script together, start R and set the working directory to the directory that includes ms.Rnw.  At the R command prompt, type:
> Sweave("ms.Rnw")
This will generate ms.tex.  This can be compiled with bibtex and latex or pdflatex to generate the DVI or PDF version.

