Regression and association models for repeated categorical data