Skip to content

Commit

Permalink
added figshare link to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
anne-urai committed Nov 20, 2018
1 parent 9b26e57 commit 0a1b611
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ Code and data for

#### Urai AE, de Gee JW, Tsetsos K, Donner TH (2018) Choice history biases subsequent evidence accumulation. bioRxiv:251595. ####

The summary csv files, including history information, are all in the Data subfolder and have been named using the abbreviations described in the paper.
Behavioral data and model fits are available at https://doi.org/10.6084/m9.figshare.7268558.v2 under a CC-BY 4.0 license.

To reproduce the figures, install the HDDM package (http://ski.clps.brown.edu/hddm_docs/index.html). Then run the HDDM models using b1_HDDM_run.py (the models are specified in hddm_models.py). Easiest is to use a batch job submission system, and do e.g.
To fit the models, install the HDDM package (http://ski.clps.brown.edu/hddm_docs/index.html). Then run the HDDM models using b1_HDDM_run.py (the models are specified in hddm_models.py). Easiest is to use a batch job submission system, and do e.g.
<code>
python b1_HDDM_run.py -r 1 -d $d -v $v -i $i -s $s
</code>
where -d = 0-6 (datasets), -v = 0-11 (versions of the model), -i = 0-30 (traces, can be changed to whatever the number of cores on a node) and -i = 5.000, the number of samples per trace.

Then, in Matlab run the file <code>plotAll.m</code>, which will read in the models and reproduce all figures step-by-step.
To reproduce all main figures, see <code>plot_all.m</code> which has the overview of the scripts that are called to generate each figure.
The <code>simulations</code> folder contains Python code to generate Supplementary Figure 8.

For questions, @AnneEUrai / [email protected].

0 comments on commit 0a1b611

Please sign in to comment.