Regarding model discrimination, the addition of lower serum magnesium levels to the diagnostic model based on established risk factors with P < 0.05 in univariate analyses (age, BMI, serum albumin, CRP, comorbidity of diabetes and cardiovascular diseases and prevalent fractures) significantly improved the NRI (0.520, P < 0.001) and the IDI (0.023, P = 0.031). This evidence concerns the gene ALB and diabetes mellitus.