detrend (Series)
Remove linear time trend from time series data
Syntax
x = detrend(x, ~range,...)
Input arguments marked with a
~sign may be omitted.
Input arguments
x [ tseries ]
Input time series.
~range [ numeric | @all | char ]
The date range on which the trend will be computed; if omitted or assigned
@all, the entire range available will be used.
Output arguments
x [ tseries ]
Output time series with a trend removed.
Options
See
tseries/trendfor options available.
Description
Examples