README
stevens.etal.2011.IJCP.zip

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

This folder (stevens.etal.2011.IJCP.zip) contains all of the files required to analyze the data and generate the manuscript for the following paper:
Stevens, J.R., Rosati, A.G., Heilbronner, S.R., & Mühlhoff, N. (2011). Waiting for grapes: Expectancy and delayed gratification in bonobos. International Journal of Comparative Psychology, 24, 99-111.

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

bonobo.bib - database of references for bibliography
stevens.etal.2011.IJCP.pdf - final published version of manuscript
stevens_etal.pdf - PDF of manuscript (generated by compiling ms.Rnw or ms.tex)
stevens_etal.Rnw - LaTeX document of manuscript with embedded R code
stevens_etal.tex - LaTeX document of manuscript after compiling R code

data directory - contains data file

figures directory - contains figures


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

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("stevens_etal.Rnw")
This will generate stevens_etal.tex.  This can be compiled with bibtex and latex or pdflatex to generate the DVI or PDF version.

