statsmodels.tsa.deterministic.TimeTrend.from_string¶
-
classmethod
TimeTrend.
from_string
(trend: str) → statsmodels.tsa.deterministic.TimeTrend[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.