Dear Statalist users,
I have a panel dataset with return data for 30 companies over 24 months. I need to calculate the cross-correlation between every pair of time-series data (e.g. between company 1 and company 2 over the 24 months and so on). I am no expert but I should need 435 correlation-coefficients right?
The variable I am most interested in, is the mean of all coefficients. I have read the help manual but can´t find an easy approach to tackle this problem. Would you recommend reformating the data into wide format? Would you use forvalues to calculate all values? And how would you calculate the mean?
Thank you.
Alex
I have a panel dataset with return data for 30 companies over 24 months. I need to calculate the cross-correlation between every pair of time-series data (e.g. between company 1 and company 2 over the 24 months and so on). I am no expert but I should need 435 correlation-coefficients right?
The variable I am most interested in, is the mean of all coefficients. I have read the help manual but can´t find an easy approach to tackle this problem. Would you recommend reformating the data into wide format? Would you use forvalues to calculate all values? And how would you calculate the mean?
Thank you.
Alex
Comment