Multivariate and multipurpose stratification