xy_outcomes2factor function

Convert two numeric ternary outcomes into a factor