Sum of squares for treatments