[R] "ccf versus acf"

From: Werner,Arelia [PYR] <Arelia.Werner_at_ec.gc.ca>
Date: Fri 15 Sep 2006 - 00:10:26 GMT

I am trying to run a cross-correlation using the "ccf()" function. When I select plot = TRUE in the ccf() I get a graph which has ACF on the y-axis, which would suggest that these y-values are the auto-correlation values.

How should I adjust the code to produce a plot that provides the cross-correlation values?

Here is my code:

w002dat <- read.csv("w054_1128958_08NM174.csv", header=TRUE) w002dat$date <- as.Date(w002dat$date,"%m/%d/%Y") attach(w002dat)
w002ccfhdgw <- ccf((gwneg), (hydro), lag.max = 400, type = c("correlation"),

         plot = TRUE, na.action = na.exclude)

Thank you


        [[alternative HTML version deleted]]

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 and provide commented, minimal, self-contained, reproducible code. Received on Fri Sep 15 17:19:41 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 15 Sep 2006 - 09:30:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.