Code from Pisupati, S., Chartarifsky-Lynn, L., Khanal, A., & Churchland, A. K. (2021). Lapses in perceptual decisions reflect exploration. Elife, 10, e55490. https://elifesciences.org/articles/55490
The models from this paper (ideal observer, inattention, motor error & exploration) are contained within jointNLLsummary.m, and can be fit to data using jointFit.m (or jointFitInac.m to fit perturbations)