Code for the temporal clustering model published in Farrell (2012), Psychological Review