Adds a trend and/or constant to an array.
Parameters: | X : array-like
trend : str {“c”,”t”,”ct”,”ctt”}
prepend : bool
|
---|
See also
statsmodels.add_constant
Notes
Returns columns as [“ctt”,”ct”,”c”] whenever applicable. There is currently no checking for an existing constant or trend.