Announcement

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

  • top 10 _Panel Data


    Greetings to all I am new in STATA, I am currently working on Panel data, the main variables are: -Countries: 16 countries -years: 27 years -Product complexity Index (PCI) for each year and each country and so the product code I am looking for a command to extract the top 10 values ​​of PCI for each Country and each year and to display a table contains in rows the 10 code product selected and in columns the series of years Thanks
    sorry for the not good english
    Last edited by Anis Oueslati; 04 Nov 2019, 01:28.

  • #2
    You'll probably need to fiddle with - egen - command, using the rank and seq arguments.
    Best regards,

    Marcos

    Comment


    • #3
      top 10 _Panel Data

      Today, 02:13
      Greetings to all I am new in STATA, I am currently working on Panel data, the main variables are: -Countries: 16 countries -years: 27 years -Product complexity Index (PCI) for each year and each country and so the product code I am looking for a command to extract the top 10 values ​​of PCI for each Country and each year and to display a table contains in rows the 10 code product selected and in columns the series of years Thanks
      sorry for the not good english

      Comment


      • #4
        You repeated the same message written in #1.

        You didn’t address the reply in #2.

        You didn’t share data, hence it is difficult to provide ‘the’ code for your case.

        Please read the FAQ.
        Best regards,

        Marcos

        Comment

        Working...
        X