Creates a Y2X function from a model.
The model
Factor
The list of factors in the design.
The function transforming the design matrix (Y) to the model matrix (X).