The following problems are often encountered in clinical studies: if the measured values of the X index are continuous, for the outcome index Y, how to convert the X index into a categorical variable so that the Y index has the greatest difference between groups. This question involves how to convert continuous variables into categorical variables. This paper introduces several common methods.