When we divided the entire cohort according to the presence of T2D, we found that the association between sex and sclerostin levels was stronger in the diabetes group compared to the group without diabetes (B = 17.17 [95% CI 6.40–27.93] p = 0.002 vs B = 9.80 [95% CI 1.36–18.24] p = 0.024). Here, SOST is linked to diabetes mellitus.