Home   >   User Resources   >   Online Help   >   apaDetrend.LinearRegress.Trend.Ahead
 

 

Function index Version 3.0.0

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