I have 3 groups, so k=3. I have generated the R code, just want to double check that they make sense. The sigma^2 is 24.70786. The sample size n I got from the following cod