Logistic regression models were used to determine the best marker for predicting PEx, considering factors such as age, sex, PEx at baseline, BMI, homozygote F508del mutation, diabetes mellitus, chronic bacterial infection, and CFTR (cystic fibrosis transmembrane conductance regulator)-modulator therapy. The gene discussed is CFTR; the disease is diabetes mellitus.