HbA1c variability was positively associated with the risk of macrovascular events ( P = 0.02 for trend ) , whereas glucose variability was associated with both macro - and microvascular events ( P = 0.005 and P < 0.001 for trend , respectively ) .