Skip to content
Prev 247864 / 398503 Next

CCF and missing values.

On 2011-01-19 08:48, Paul Ossenbruggen wrote:
I can see two possible solutions:
1. Use na.action = na.contiguous (see ?na.contiguous)
2. Modify ccf(). Make a copy and replace the line

   acf.out <- acf(X, lag.max = lag.max, plot = FALSE, type = type)

with

   acf.out <- acf(X, lag.max = lag.max, plot = FALSE, type = type,
                  na.action = na.action)

I think this may be a bug in ccf().

Peter Ehlers