Re: [R] Nested For loops

2009-12-22 Thread baloo mia
In the ACF(nlme) the normalization of the numerator has been done by N and I want to normalize it by N-k, where N is the observations and k is the lag. Baloo --- On Tue, 12/22/09, ONKELINX, Thierry wrote: From: ONKELINX, Thierry Subject: RE: [R] Nested For loops To: "baloo mia"

[R] Nested For loops

2009-12-21 Thread baloo mia
Dear R experts, Might be very simple question to ask but would be insightful. As the same story of nested "for loops". following is the code that I am using to get the autocorrelation function of the sample data. I have tried to get rid of for loops but since I am touching R after such a long t