function to transform ordinal to numeric target values