Dear All,

I have a variable, say country, which contains the name of countries in my dataset and I need to use to generate a loop.

I need to generate a local macro like the following:

Code:
local k "US France UK Italy"
Of course the list is much longer than it.

Is there any way I can create a local avoiding to write down all such a long list? I mean is there any way to tell Stata to read the content of the variable country and to generate the local directly?

Thanks for your help.

Dario
​​​​​