Announcement

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

  • problem to summarize my variables by year

    I am new to stata, i need your help, i am trying to summarize all my variables by year (from 2002 to 2015)
    but i only know how to summarize for one year in particular
    like this :
    sum if year ==2002

    but is it possible to do this for every year ?
    I joined my excel file that i used for stata
    Thanks in advance
    Attached Files

  • #2
    first, as the FAQ requests (please read the FAQ), you should not attach excel files (or, in my opinion, any kind of non-graphic binary file)

    second, try this:
    Code:
    bysort year: sum

    Comment


    • #3
      Thanks Rich

      Comment

      Working...
      X