Here is the source code for the simulations in Sears and Angilletta 2014.