This appends a constant to the design matrix if prepend==False.
It checks to make sure a constant is not already included. If there is at least one column of ones then an array of the original design is returned.
Parameters : | data : array-like
prepend : bool
|
---|---|
Returns : | data : array
|