Skip to content

Commit

Permalink
yes master
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpoison committed Sep 5, 2022
1 parent 23f5f0a commit c8d3773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion textRcode.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```

Expand Down

0 comments on commit c8d3773

Please sign in to comment.