In women with hyperglycemia, smoking was positively associated with LDL-C/HDL-C ratio, AIP, and CMI, and habitual alcohol drinking was inversely associated with LDL-C/HDL-C ratio, LAP, AIP, and CMI. This evidence concerns the gene AIP and autoimmune pancreatitis.