Trends in categorical data