Dear Stata users
I have daily panel dataset with 5000 firms from 4th January 2006 to December 2020. I need to estimate cross-sectional correlations between 40 variables every day (by date) and then take the means of these estimates. Running a loop every day over 40 variables is very inefficient. It takes a lot of time. Do you have any advice on the faster way to get daily cross-sectional correlations and their time-series means?
Thanks.
Regards,
Olena
I have daily panel dataset with 5000 firms from 4th January 2006 to December 2020. I need to estimate cross-sectional correlations between 40 variables every day (by date) and then take the means of these estimates. Running a loop every day over 40 variables is very inefficient. It takes a lot of time. Do you have any advice on the faster way to get daily cross-sectional correlations and their time-series means?
Thanks.
Regards,
Olena
Comment