Anonymous repository for peer review
This repository contains data-processing and analysis code for Learning What Matters: Goal certainty shapes working memory prioritization. The analysis proceeds in six steps: Clean behavioral data. Combine raw datasets, apply the rule-judgment accuracy exclusion criterion, and label rule switches, trial position, and active dimensions. Fit the rule-inference reinforcement-learning model. The two RL scripts define and fit a feature-based model separately for each participant using maximum a posteriori (MAP) estimation. Trial-by-trial rule certainty is calculated as the KL divergence of softmax-normalized rule weights from a uniform distribution over the six rules. Label perceptual evidence. Calculate the circular distance between each feature value and its nearest category prototype, with larger distances indicating weaker evidence. Prepare working memory reports. Extract probe trials, calculate signed and absolute angular errors, and label features by their relevance to the current and previous rules. Prepare data for Bayesian analyses. Reshape working memory reports into long format, label active and inactive features, and prepare predictors for reaction-time analyses. Fit Bayesian models. The three ZIP archives contain model-fitting scripts and input data: Figure 4: Shifted lognormal mixed-effects model testing how rule certainty modulates reaction-time sensitivity to active and inactive perceptual evidence, controlling for trial position. Figure 5: Beta mixed-effects model testing how rule certainty and dimension relevance interact to predict absolute working memory error. Figure 6: Hierarchical Bayesian mixture model separating certainty-related changes in estimated retention probability from changes in the precision of retained features.
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-25
- DOI
- https://doi.org/10.5281/zenodo.24544642
- Primary Topic
- Neural and Behavioral Psychology Studies
- Type
- article
- Field-Weighted Citation Impact
- 0.00