In medical research recurrent event times can be analysed using a frailty model in which the frailties for different individuals are independent and identically distributed. However, such a homogeneous assumption about frailties could sometimes be suspect. For modelling heterogeneity in frailties we describe dispersion frailty models arising from a new class of models, namely hierarchical generalized linear models. Using the kidney infection data we illustrate how to detect and model heterogeneity among frailties. Stratification of frailty models is also investigated.