Bugs/ Jags code for running a Bayesian state-space model of visuomotor adaptation based on the work by Cheng and Sabes:
Cheng S, Sabes PN (2007) Calibration of visually guided reaching is driven by error-corrective learning and internal dynamics. J Neurophysiol 97:3057–69. Cheng S, Sabes PN (2006) Modeling Sensorimotor Learning with Linear Dynamical Systems. Neural Comput 18:760–793.