Hi Guys,
I am desperately trying to find an approach to the following problem:
For a set of variables (e.g. return, size, book-to-market) I need to generate a correlation matrix, which averages each month's correlation coefficient over a longer time-series.
It looks so easy, but I have spend two days thinking of and researching for possible approaches and I have failed, hence, I would really appreciate any help.
Thank you,
Carlos
I am desperately trying to find an approach to the following problem:
- I have panel data sorted by company and month.
- In order to extend an existing paper, I have to generate a time-series average over monthly cross-sectional correlations between variables used in a pricing regression
For a set of variables (e.g. return, size, book-to-market) I need to generate a correlation matrix, which averages each month's correlation coefficient over a longer time-series.
var1 | var2 | var3 | |
var1 | 1 | ||
var2 | avg. var1/2 correlation coeff. | 1 | |
var3 | avg. var1/3 correlation coeff. | avg. var2/3 correlation coeff. | 1 |
Thank you,
Carlos
Comment