Skip to content
Urai AE, de Gee JW, Tsetsos K, Donner TH (2019) Choice history biases subsequent evidence accumulation. eLife
MATLAB Python Jupyter Notebook Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
analyticalDDM
extended_models replaced rtf with markdown readme Dec 28, 2018
graphicalModels
old_code license update Jun 17, 2019
simulations code cleanup for publication Jun 17, 2019
LICENSE.md cleanup for preprint Jan 29, 2018
README.md
barplots_BIC.m license update Jun 17, 2019
barplots_DIC_stcoh.m license update Jun 17, 2019
barplots_modelcomparison.m license update Jun 17, 2019
barplots_modelcomparison_regression.m license update Jun 17, 2019
compare_correlations_correct_error.m license update Jun 17, 2019
conditional_bias_functions_collapsed.m license update Jun 17, 2019
conditional_bias_functions_collapsed_summary.m
corrcoef2.m
correlate_z_vbias.m license update Jun 17, 2019
correlations_regression_lags.m
define_behavioral_metrics.m
dprime_driftrate_correlation.m
fitHDDM.py rerun stimcoding_dc_z_prevstim Jul 15, 2019
fitLogistic.m
forestPlot.m
gelman_rubin.m
hddm_models.py submit more model fits for Anke on LISA Jul 11, 2019
hddm_models.pyc concatenate model comparison: Jul 14, 2019
hddmparams rerun stimcoding_dc_z_prevstim Jul 15, 2019
hddmparams_PPC rerun stimcoding_dc_z_prevstim Jul 15, 2019
history_kernels.m license update Jun 17, 2019
individual_correlation_PES.m license update Jun 17, 2019
individual_correlation_main.m license update Jun 17, 2019
individual_correlation_pharma.m license update Jun 17, 2019
individual_correlation_prevcorrect.m license update Jun 17, 2019
individual_correlation_repeaters_vs_alternators.m
individual_correlation_tcoh.m license update Jun 17, 2019
kernels_lags_bestmodel.m license update Jun 17, 2019
kostis_all_AICs.m license update Jun 17, 2019
kostis_all_correlations_selected.m license update Jun 17, 2019
kostis_makeTable_v2.m
make_dataframe.m
make_stopos_file.m rerun stimcoding_dc_z_prevstim Jul 15, 2019
meg_regression_dic.m
meg_regression_posteriors.m
motionEnergy_check.m
motionEnergy_filterDots.m
motionEnergy_kernels.m license update Jun 17, 2019
nondecisiontime_coherence.m
plotScatter.m license update Jun 17, 2019
plot_HDDM_priors.py plot all priors Jun 13, 2018
plot_all.m final data to figshare Jun 17, 2019
plot_dynamic_bias_signal_hanks.m license update Jun 17, 2019
plot_posteriors.m license update Jun 17, 2019
post_error_slowing.m
posterior_predictive_checks.m
posteriorpval.m
read_into_Matlab.m license update Jun 17, 2019
read_into_Matlab_gSquare.m license update Jun 17, 2019
rename_PPC_files.m license update Jun 17, 2019
repetition_range.m
repetition_withintrial.m license update Jun 17, 2019
schematic.m license update Jun 17, 2019
simulate_correlations.m submit more model fits for Anke on LISA Jul 11, 2019
spearmans.m
stoposJob_HDDM
stoposJob_HDDM_PPC
stoposJob_HDDM_gSquare more versions for figure3 Aug 29, 2018
stoposJob_short concat all models Feb 18, 2019
strategy_plot.m license update Jun 17, 2019
strategy_plot_2to7.m
subjectspecifics.m license update Jun 17, 2019
tableSubjectData.csv reran and parsed all models, plot on local May 17, 2018

README.md

Code and data for

Urai AE, de Gee JW, Tsetsos K, Donner TH (2019) Choice history biases subsequent evidence accumulation. eLife, 8:e46331.

Behavioral data and model fits are available at https://doi.org/10.6084/m9.figshare.7268558 under a CC-BY 4.0 license.

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. python b1_HDDM_run.py -r 1 -d $d -v $v -i $i -s $s 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.

To reproduce all main figures, see plot_all.m which has the overview of the scripts that are called to generate each figure.

The extended_models folder contains Matlab code to fit the models in Figure 6.

The simulations folder contains Python code to generate Supplementary Figure 8.

For questions, @AnneEUrai / anne.urai@gmail.com.

You can’t perform that action at this time.