On the calculation of derived variables in the analysis of multivariate responses