Update ordinalpredictor.R

Updated function definitions and fixed bugs