Essays in Dynamic Duration and Count Modelling