Hello,

I would like to generate the correlations between two dependent variables for a large set of countries, using the following command:

Code:
bysort country: correl  value_added_exports gross_exports
I simply want to describe the data for now and later see if there are any difference in using either of these trade statistics. I am looking for a command to put all the corresponding correlations by country into a table. I was considering a loop but could not figure anything useful out, yet.

Kind regards,

Moritz.