GenContrastVariables function

Generate contrast variables from data