Announcement

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

  • Repeated time values within panel

    Dear All,

    I am dealing with a panel of firms. When I type:

    Code:
    xtset id year
    I get:

    Code:
    . xtset id year
    repeated time values within panel
    r(451)
    I know the procedure to identify the repeated values (for instance the one reported at this link: http://www.stata.com/support/faqs/da...d-time-values/)

    Now, suppose that I do not mind which of the two (or more) repeated values I drop, as far as I have only one entry for each id in each year.

    Do you have any suggestion about how I can drop the repeated values quickly instead of doing it manually?

    Thanks in advance.

  • #2
    use the -duplicates- command; you may need to use the "force" option so read the help file carefully

    Comment


    • #3
      Thanks

      Comment

      Working...
      X