Higher prepregnancy HOMA-IR is independently associated with an increased risk for gestational diabetes mellitus years before conception.