Defines the order convention for regressors in polynomial. It is formulated as a matrix of explonents. Each column of the matrix (a,b,c, ...) corresponds to one regressor defined as the product of X1^a * X2^b * X3^c, etc.
regOrd(nVar, dMax)
The number of variables
The maximum degree allowed for the polynomial
A matrix of exponent. Each column correspond to one polynomial term. Each line correspond to one variable. For example, a column of three exponents (0,2,1) correspond to regressor X1^0 * X2^2 * X3^1, that is X2^2 * X3.