Analysis of variance in complex experimental designs