tidyverts / feasts

Feature Extraction And Statistics for Time Series
https://feasts.tidyverts.org/
291 stars 23 forks source link

Note in documentation that CCF is reversed corresponding to stats::ccf #164

Open aelzenaar opened 5 months ago

aelzenaar commented 5 months ago

Suppose I have a tsibble ts with columns Predictor and Predicted. Then stats::ccf(ts$Predictor, ts$Predicted) measures the correlation of lags of Predictor compared to Predicted. But feasts::CCF(ts$Predictor, ts$Predicted) measures the correlation of lags of Predicted compared to Predictor. This is a new behaviour as of feasts 0.3, previously the two calls were equivalent. So far as I can see the new behaviour is the correct behaviour (#144), but it silently broke some of our scripts on upgrading. Of course this is alpha software and we should expect breakages like this, but it would be very helpful if either

Thanks for your very useful software, in any case.