Re: [R] acf problem ?

From: Sundar Dorai-Raj <sundar.dorai-raj_at_pdf.com>
Date: Fri 13 May 2005 - 02:35:45 EST

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 error using:

 > acf(c(lh), 1)
 > acf(matrix(lh,ncol=1), 1)
 > acf(matrix(lh,nrow=1), 1)

Error in acf(matrix(lh, nrow = 1), 1) : 'lag.max' must be at least 1

So, maybe try

acf(c(Recsim[1,]), lag.max=1)

HTH, --sundar



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri May 13 02:50:57 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:44 EST