Visualizing and modeling joint behavior of categorical variables with a large number of levels