Re: [R-sig-eco] correlating three time-series in R

2017-07-27 Thread Thomas Petzoldt
Hi, a compact, practical and well readable introduction to some time series methods can be found in chapter 6 of Kleiber and Zeileis (2008): Applied Economics with R. This book is also well suited for ecologists and builds a fundamental for further reading and understanding. Thomas Am

Re: [R-sig-eco] correlating three time-series in R

2017-07-26 Thread Tania Bird
Thanks Bob This is great, The correlation does jump out when I plot it- I am just looking for a quantified way of testing what I see. If there is a more appropriate test I'd be happy to learn. Many thanks Tania Bird MSc *"There is a sufficiency in the world for man's need but not for man's

Re: [R-sig-eco] correlating three time-series in R

2017-07-26 Thread Bob O'Hara
You can pass the columns to ccf() directly: df <- data.frame(x=rnorm(6), y=rnorm(6)) ccf(df$x, df$y) print(ccf(df$x, df$y)) You should probably also check the time series task view: , in particular the zoo package, to see what can be done

[R-sig-eco] correlating three time-series in R

2017-07-26 Thread Tania Bird
I have three data sets of abundances through time for plants, insects and reptiles. There are 6 samples over a ten year period (all taxa sampled at the same time). I recognise this is a small data set for time series. I would like to correlate the time series to see if a) increases in abundance