I have two variables A and B of interval scale type.
A is the birth year of a person and B is the number of years spent at university.
What method would you recommend to measure the correlation?
I have two variables A and B of interval scale type.
A is the birth year of a person and B is the number of years spent at university.
What method would you recommend to measure the correlation?
If you would like to see correlation between birth cohorts and amount of schooling take the year and the number of years only. would that be a solution? Just like this:
cor(year_of_birth, years_in_university)
Edit
I conclude from your comments you want to choose between Spearman/Kendall/Pearson. There are numerous questions concerning this topic (e.g choosing between Spearman and Pearson)
Basically the difference is that Pearson measures a linear relationship while Spearman measures monotonic relationship. In most cases however they will be pretty similar. If you read the article referenced - you will see that you gave your answer in your question. For interval scaled variables the Spearman method is more appropriate.