Common pathway model for categorical data