toCodedValues

Converts the original values to code values

Parameters

rawValues

the values for each factor. The size must be the number of factors with element 0 representing the first factor