The ith row of a design matrix contains the values of the basis functions funs evaluated at the values for the ith element in data.
The data can have the form {{x1, y1, ..., f1}, {x2, y2, ..., f2}, ...}, where the number of coordinates x, y, ... is equal to the number of variables in the list vars.
The data can also be of the form {f1, f2, ...}, with a single coordinate assumed to take values 1, 2, ....
The argument funs can be any list of functions that depend only on the variables vars.
whether to automatically include a constant as one of the functions
With the default setting IncludeConstant->True, the constant 1 is included as the first entry in the list of basis functions if a constant is not included in funs.