Analysis of variance for correlated observations