Skip to content
Prev 168805 / 398502 Next

How to analyse and model 2 time series, when one series needs to be differenced?

On Mon, 2009-01-26 at 08:52 +0000, Andreas Klein wrote:
Hi Andreas,

If I understand your problem this script solve tour question

t<-1:15
x<-rnorm(10)
y<-.2-.3*t+rnorm(15)
y.dif<-diff(y,1)
ccf(x,y.dif)