Dear Jacob,
A simpler way of doing this is to take off the first L of one of the variables and make it the last L, then do your normal correlation that will be of lag = 1. The same step can be repeated for lag = 2.
For example if x = 2, 4, 6, 8, 10, 12, 14, ........ and this is to be correlated with y = 1, 3, 5, 7, 9, 11, 13, .........
Therefore at lag= 1, x will be 4, 6, 8, 12, 14, ....., 2 while y remains untouched.
I hope this helps..., cheers!
Dr Kamoru Abiodun LAWAL
Meteorological Research and Training Institute,Nigerian Meteorological Agency,
PMB 1215, Oshodi, Lagos, Nigeria.
.......there's no wrong time for doing the right things..........<<<<--------------------------------------------------------------------------------------------------->>>>
Climate System Analysis Group, Department of Environmental and Geographical Science,
University of Cape Town, Private Mail Bag X3,
Rondebosch, Cape Town, 7701, South Africa.
On Saturday, 23 January 2016, 17:21, 'Gbenga Abiodun' via _OAR PMEL Ferret Users <ferret_users@xxxxxxxx> wrote:
Hi all,
Can someone please help with lagged cross-correlation script. Its urgently needed.
Thanks all.
Jacob.