adding analysis of marginal homogeneity