Trying to compute the 'autocorrelations' for time series data set, 5 million observations of a single variable X. R(T) = SUM ( X - mean(X) ) * ( LagT(X) - Mean(X) ) / (N - T) must be computed and summed for each lag times T=1,2,3,4,.....,N. hence the 5million columns I dont want to create 5,000,000 columns, its my poor coding knowledge of a better way. but i need the compute the above equation R(1), R(2), .... R(5,000,000). So all i really need is just a two column data set with variables 'X' and 'R(T)' with 5 million observations. Any ideas how this could be done?
... View more