I have two sets of data collected from along a stream. Both fluctuate and are higher in some areas of the stream and lower in others. I want to test if those fluctuations are correlated (i.e. they are both high in the same areas of the stream). Unfortunately, the samples are not from the exact same sites along the stream. I do have "stream mile" measurements for each site. How do I statistically test whether the variables are correlated. Bonus if I can do the test in R. Thanks!

More Claire W. Varian-Ramos's questions See All
Similar questions and discussions