Statistical analyses
A power analysis was conducted to determine the sample size needed to detect a mean difference of 6 mmol/mol (standard deviation [SD] = 9) in HbA1c. To achieve a power of 80% with a significance level of 0,05 in a two-sided test. It determined that a minimum of 37 participants should be included in each group. Considering potential dropout rates, a total of 100 patients was planned to be enrolled in the study. Participants was randomly assigned to either experimental or control group with a 1:1 distribution as per a computer-generated randomisation.Categorical data are described with frequencies and percentages, n (%), while ordinal, discrete, and continuous data are given as means with accompanying standard deviations (SDs). Tests of differences between baseline and 6-month follow-up within groups were performed using paired t-test for continuous data and the Wilcoxon signed-rank test with continuity correction for ordinal data, whereas tests of differences in changes from baseline to 6-month follow-up between intervention and control groups were performed using the Welch two-sample t-test for continuous data and the Wilcoxon rank-sum test with continuity correction for ordinal data. All statistical analyses were performed in R 4.1.2 (R Foundation for Statistical Computing, Vienna, Austria), with two-sided P-values < 0.05 considered statistically significant.