add support for factor scores for the categorical case (phase I)