A clustering method to study the loss of kidney function following kidney transplantation