Random effects models were used to compare repeated measures of the diabetes control measures between those with depression versus those without depression and ever versus never cognitively impaired .