From c8d37733f5e2ff3995a1d3cf95be8faf087bbfc5 Mon Sep 17 00:00:00 2001 From: Nicky Poison Date: Sun, 4 Sep 2022 21:04:43 -0400 Subject: [PATCH] yes master --- textRcode.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/textRcode.md b/textRcode.md index 32c9b5c..a0729db 100644 --- a/textRcode.md +++ b/textRcode.md @@ -253,7 +253,7 @@ Y = .01*t + rnorm(num) par(mfrow=c(3,1)) tsplot(cbind(X,Y), spag=TRUE, col=astsa.col(c(4,2),.7), lwd=2, ylab='data') ccf2(X, Y, ylim=c(-.3,.3), col=4, lwd=2) -Yw = resid(lm(Y~t)) # whiten Y by removing trend +Yw = detrend(Y) # whiten Y by removing trend ccf2(X, Yw, ylim=c(-.3,.3), col=4, lwd=2) ```