Remove deterministic trend (e.g. linear, polynomial, etc.) from the input time series.
X is the univariate time series data (a one dimensional array of cells (e.g. rows or columns)).
Order is the time order in the data series (i.e. the first data point's corresponding date (earliest date=1 (default), latest date=0)).
|1||ascending (the first data point corresponds to the earliest date) (default)|
|0||descending (the first data point corresponds to the latest date)|
Method is the order of the polynomial time trend.
|0||subtracts mean (default)|
|1||constant plus trend model|
|2||constant plus trend and squared trend model|
- The time series is homogeneous or equally spaced.
- The time series may include missing values (e.g. #N/A) at either end.