Fitting a distance model to homogeneous subsets of variables: Points of view analysis of categorical data