A Partial Least Squares Algorithm Handling Ordinal Variables