Hello,

I am using Stata and want to write a script that will correlate selected variables. This correlation will be computed using data from different industry sectors (SIC Codes). So simply, we can say for n industry codes, we will compute correlations for the selected variables for each SIC code separately. Now the problem is how can I do this in Stata and to produce the end result should to be a table for pairs of correlated variable as ranked by industry code?

Thanks for your hints and suggestions.

More Muhammad Anees's questions See All
Similar questions and discussions