A transition-probability model for the study of chronic diseases