Title: Generalised residuals and heterogeneous duration models