We fitted conditional logistic regression models to examine the associations between SHBG and total testosterone levels with diabetes by sex. The gene discussed is SHBG; the disease is diabetes mellitus.