Algorithm for inferring chunks in discrete sequence production tasks using response times and errors
Matlab HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Multi-faceted aspects of chunking enable robust algorithms: implementation

This package implements the method described in "Multi-faceted aspects of chunking enable robust algorithms" by Daniel E. Acuna, Nicholas F. Wymbs, Chelsea A. Reynolds, Nathalie Picard, Robert S. Turner, Peter L. Strick, Scott Grafton, and Konrad Kording, accepted in the Journal of Neurophysiology (

The algorithm was implemented by Daniel E. Acuna ( If you have any questions, send him an email.

To run the algorithm, you need to first detrend your data so that you remove aspects of training that are largely unrelated to chunking. In our paper, we described a simple model that does this detrending.

We provide a full worked out example in 'demo.m', using data from one subject and one sequence. Our code needs the Statistics Toolbox from Matlab for detrending.