[R] acf problem ?

2005-05-12 Thread Ernesto Jardim
Hi I'm getting the following error that do not make sense to me, what am Idoing wrong ? acf(Recsim[1,], lag.max=1) Error in acf(Recsim[1, ], lag.max = 1) : 'lag.max' must be at least 1 Regards EJ __ R-help@stat.math.ethz.ch mailing list

Re: [R] acf problem ?

2005-05-12 Thread Prof Brian Ripley
On Thu, 12 May 2005, Ernesto Jardim wrote: I'm getting the following error that do not make sense to me, what am Idoing wrong ? acf(Recsim[1,], lag.max=1) Error in acf(Recsim[1, ], lag.max = 1) : 'lag.max' must be at least 1 Inside the code lag.max - min(lag.max, sampleT - 1) if (lag.max

Re: [R] acf problem ? SOLVED

2005-05-12 Thread Ernesto Jardim
Ernesto Jardim wrote: Hi I'm getting the following error that do not make sense to me, what am Idoing wrong ? acf(Recsim[1,], lag.max=1) Error in acf(Recsim[1, ], lag.max = 1) : 'lag.max' must be at least 1 Regards EJ __ R-help@stat.math.ethz.ch

Re: [R] acf problem ?

2005-05-12 Thread Sundar Dorai-Raj
Ernesto Jardim wrote on 5/12/2005 11:01 AM: Hi I'm getting the following error that do not make sense to me, what am Idoing wrong ? acf(Recsim[1,], lag.max=1) Error in acf(Recsim[1, ], lag.max = 1) : 'lag.max' must be at least 1 Regards EJ Hi, Ernesto, What is Recsim[1,]? I can reproduce this