I need to calculate the correlation for each symbol and day. And I also need to count the number of symbols and days for which the correlation coefficient is significantly different from 0.
Below is my code. Now I have to look at the output and count manually but there must be an easier way. How should I change this code to make this possible? Thank you.
proc corr data=sourceh.zmetricsbysymbol ;
by symbol day;
var zbuy zsell;
run;