[R] extra 0 in ccf

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Wed Jun 12 09:29:28 CEST 2002


It's bug (of several years' standing), now fixed in R-patched.

On Tue, 11 Jun 2002, Rafael A. Irizarry wrote:

> im using R 1.5.0 on redhat.
>
> when i use ccf in the ts library i get, what i think is, an incorrect
> entry in the lag and acf components. as an example, look at the second
> entry in the lag and acf components below:
>
> > library(ts)
> > tmp <- ccf(ts(rnorm(3)),ts(rnorm(3)),plot=F)
> > tmp$lag
> , , 1
>
>      [,1]
> [1,]   -1
> [2,]    0
> [3,]    0
> [4,]    1
>
> > tmp$acf
> , , 1
>
>             [,1]
> [1,] -0.17058475
> [2,]  0.00000000
> [3,]  0.97681714
> [4,]  0.07660825
>
>
> is there a reason for this entry?
>
> thanks,
> rafael
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list