statsmodels.tsa.deterministic.TimeTrend.from_string¶
- classmethod TimeTrend.from_string(trend)[source]¶
Create a TimeTrend from a string description.
Provided for compatibility with common string names.
- Parameters:¶
- trend{“n”, “c”, “t”, “ct”, “ctt”}
The string representation of the time trend. The terms are:
“n”: No trend terms
“c”: A constant only
“t”: Linear time trend only
“ct”: A constant and a time trend
“ctt”: A constant, a time trend and a quadratic time trend
- Returns:¶
TimeTrend
The TimeTrend instance.
Last update:
Nov 14, 2024