Less ugly (and working version) of the code here:tLBA.stan (6.2 KB)
But all my questions are still relevant