Building custom groups for cumulative incidence analysis of cardiomyopathy