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