ModelMatrixTerms function

Internal model.matrix.terms function