Factors associated with glycemic control after an inpatient program.