Cognitive Measurement Models for Categorical data