Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How can I have the list of the countries in a panel data?

    Hello,

    I have a panel data for multiples countries at a quarterly frequency. I would like to have a list of the countries that I have in the dataset.
    Can someone help me with the code to know the list of all the countries in the dataset?
    Thank you in advance.

  • #2
    It depends on what kind of "list" you want. If you want to see a list in the Results window, -levelsof country- (where country is the name of your variable) will do it. If you want to put that list into a local macro so that you can use it later for some purpose, -levelsof country, local(countries)- will do that.

    Comment


    • #3
      As tabulate evidently did not spring to mind for this purpose, it's worth introducing it to you as one of the basic commands.

      Comment

      Working...
      X