The first approach obtained the separate group variance–covariance matrices much easily (less sophisticated programming). We can easily convert these separate variance–covariance matrices into correlation matrices using the cov() function and the cov2cor() function as shown before. The covariance matrices exclude the grouping variable by indicating a −8 value (column location in the matrix) in the selection of variables to include. The two sets of R commands are as follows: