Appendix A - RJM Simulation Code
You can download the code we used to simulate responses from the RJM here.
The code is plain text that will run in the R statistical language, available for free download from www.r-project.org. Simply copy and paste this code into a command window. Running the code will generate a simulated sequence of decision stimuli (stored in the vector "stims") and a corresponding sequence of simulated decisions from the RJM (stored in "resps"). Generating 1,000,000 simulated responses takes about one minute on a standard desktop PC.