NEWLEVELS
NEWLEVELS(f;x) forms a variate from the factor f; the variate x defines a value for each level and should be the same length as the number of levels of the factor.