apaDetrend.LinearRegress.Trend.Ahead(DataMatrix, nAhead)
Excel
=apaDetrend.LinearRegress.Trend.Ahead(DataMatrix, nAhead)Result
Detrends data with a linear regression in time, y = a + b*t. Returns the trend values and nAhead extrapolated values.
Syntax
DataMatrix: r x c matrix of data, each column containing a series
nAhead: number of observations to extrapolate
