I currently have a data set that looks as such (3 variables and a time series):
date variable value
01/01/16 A 1000
01/01/16 B 800
01/01/16 C 10
01/02/16 A 2000
01/02/16 B 1800
01/02/16 C 100
01/03/16 A 100
01/03/16 B 80
01/03/16 C 10
What I'm trying to do is calculate the correlation between all three variables (A-B, A-C, B-C) per day so that I can graph the result as a plot with the date being on the x axis and on the y axis the correlation coefficient (w/ the legend being A-B, A-C, B-C).
Any help would be greatly appreciated!
