-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]. |