This function simplifies working with one-variable models in, for example, fDMA. It produces a matrix corresponding to the set of models consisting of models with a constant and just one extra variable, and a model with a constant only.
onevar(x)
Arguments
x: matrix of independent variables, see mods.incl in fDMA
Returns
matrix, inclusion of a variable is indicated by 1, omitting by 0