Body mass index and ovarian function are associated with endocrine and metabolic abnormalities in women with hyperandrogenic syndrome.