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
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
analyticalDDM added conditional bias function schematic Jul 7, 2018
extended_models replaced rtf with markdown readme Dec 28, 2018
graphicalModels reran and parsed all models, plot on local May 17, 2018
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 Update README.md Jul 2, 2019
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 license update Jun 17, 2019
corrcoef2.m use spearmans rho for individual correlations Aug 23, 2018
correlate_z_vbias.m license update Jun 17, 2019
correlations_regression_lags.m license update Jun 17, 2019
define_behavioral_metrics.m license update Jun 17, 2019
dprime_driftrate_correlation.m license update Jun 17, 2019
fitHDDM.py rerun stimcoding_dc_z_prevstim Jul 15, 2019
fitLogistic.m license update Jun 17, 2019
forestPlot.m license update Jun 17, 2019
gelman_rubin.m license update Jun 17, 2019
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 license update Jun 17, 2019
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 license update Jun 17, 2019
make_dataframe.m license update Jun 17, 2019
make_stopos_file.m rerun stimcoding_dc_z_prevstim Jul 15, 2019
meg_regression_dic.m license update Jun 17, 2019
meg_regression_posteriors.m license update Jun 17, 2019
motionEnergy_check.m license update Jun 17, 2019
motionEnergy_filterDots.m license update Jun 17, 2019
motionEnergy_kernels.m license update Jun 17, 2019
nondecisiontime_coherence.m nondecision time per coherence level Jan 12, 2019
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 license update Jun 17, 2019
posterior_predictive_checks.m license update Jun 17, 2019
posteriorpval.m license update Jun 17, 2019
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 license update Jun 17, 2019
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 license update Jun 17, 2019
stoposJob_HDDM increased job time limit back to 5 days Apr 13, 2019
stoposJob_HDDM_PPC linked stopos submission jobs to new fitHDDM.py Sep 25, 2018
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 license update Jun 17, 2019
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.