Multivariate methods for the analysis of structured data