After matching for age , sex , body mass index , type and dose of hypoglycemic agents , and duration of diabetes , subjects were randomly assigned into 4 groups receiving the following : 1 ) 50000 IU/wk vitamin D + calcium placebo ; 2 ) 1000 mg/d calcium + vitamin D placebo ; 3 ) 50 000 IU/wk vitamin D + 1000 mg/d calcium ; or 4 ) vitamin D placebo + calcium placebo for 8 weeks .