Announcement

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

  • how many observations per year in panel data

    Hi there,

    I have a panel dataset. How can I see how many observations there are per year? I see in the data viewer that some years have lots of missing observations, but want to know exactly.

    Thank you !

  • #2
    Code:
    tab year

    Comment


    • #3
      Hi Clyde,

      Thank you. I used it before, but it doesn't provide what I was looking for. Have a look at the result below:

      Comment


      • #4
        Here is the table:

        What I'm trying to find out is how many observations are there per year — if there are too few then to drop the variable
        Attached Files

        Comment


        • #5
          perhaps,
          Code:
          tab year if !missing(variable)

          Comment

          Working...
          X