Metrology of categorical data in psychometrics