Besides, smoke exposure, gender (male) were also related to hypocalcemia [β (95%CI) − 0.025 (− 0.045 to − 0.005), P = 0.017; − 0.041 (− 0.083 to − 0.001), P = 0.047], and 25(OH)D3 was correlated with serum calcium, phosphorus, and PTH [β (95%CI) 15.392(7.032–23.753), P < 0.001; − 7.287 (− 13.450 to − 1.124), P = 0.021; − 0.103(− 0.145 to − 0.061), P < 0.001], and female was more likely to have secondary hyperparathyroidism [β (95%CI) 12.141 (4.047–20.235), P = 0.002]. Here, PTH is linked to secondary hyperparathyroidism.