The competing risk method has become more acceptable for time-to-event data analysis because of its advantage over the standard Cox model in accounting for competing events in the risk set. This study aimed to construct a prediction model for diabetes using a subdistribution hazards model