The aim of the present pilot study was to assess the effect of atorvastatin 10 mg on pancreatic beta-cell function and insulin resistance in patients with hyperlipidemia and type 2 diabetes by using the homeostasis model assessment-2 ( HOMA2 ) index .