Hi I have a data frame which looks like : hs361224 hs426435 hs903411 hs205893 sPP13_2 hs792300 hs747811 2.5 0.4444837 -0.7684995 -0.4209555 -0.4996375 1.363161 -0.259850 -0.503650 5 1.8617705 -0.5842845 -0.3615625 -0.9784640 1.862586 2.104920 1.192305 24 ...................................................................................................... . . 96 ............................................................................................... where each column represents a gene and row names are time steps.My goal is to calculate the correlations between different columns (genes) at lag values of +1 and -1. I am trying to use the R function acf with lag.max = 1. But I am not confident about the results since I am not sure how the function works. For example in some cases it uses lag value of 1 and in others it uses -1. Is that a random choice or is there a procedure it follows? Is there a better way calculate lag correlations or if this is the best way then can someone explain how the acf fn actually works? Gaurav Bhatti -- View this message in context: http://old.nabble.com/Lag-correlation-tp26503741p26503741.html Sent from the R help mailing list archive at Nabble.com.