This is the code implementing the model that we describe in our EC-Web 2014 paper "Modelling User Behaviour in Online Q&A Communities for Customer Support".