Partial Least Squares for categorical data types