Home   >   User Resources   >   Online Help   >   apaCorrels.LeadLag
 

 

Function index Version 3.0.0

apaCorrels.LeadLag(X, Y, nLags)

Excel=apaCorrels.LeadLag(X, Y, nLags)

Result

Calculates leading and lagging correlation coefficients between two time series. High correlations at positive lags mean “X leads, Y lags”, i.e. X tends to move before Y.

Syntax

X: r x 1 data vector containing a time series (explanatory variable)

Y: r x 1 data vector containing a time series

nLags: number of observations by which the data is shifted forward and backward