When the dependent variable is a binary variable, logistic regression analysis can be used to examine the association between independent variables and the dependent variable. The `glm` function is used for logistic regression analysis. When the P-value from univariate analysis meets the threshold (P < 0.1), the variable is included in the multivariate logistic analysis.