I have a question in regards to correlations that I am trying to uncover using R. I have two data sets that span over the years 2010-2016 and include all counties within a state. I am trying to correlate these data sets with each other by year (looking at inter-county correlations), and then by county (looking at year-based correlations). The variables are all continuous.
The relationship between the variables--Number of Visits and Variable1,...,Variable 19-- are all non-linear over the total span of years, 2006-2016 (parabolic and s-curves, mostly).
I believe that the assumption to use Pearson's Correlations and linear regression, is that the variables must have a linear relationship, making them invalid choices.
This is a rather new topic to me, and I was wondering if anyone had any ideas or thoughts on what might be the best route to take to find correlations for my non-linear data.
Thank you in advance!
[I originally posted this on stack overflow and it was recommended that I move the question to this site instead.]