Announcement

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

  • Duplicates list full pieces of observations

    Hi Statalisters,

    Just have a simple question. If my dataset contains variable v1, v2, and v3, I use -duplicates list v1 v2- to list whether there are duplicate observations conditioning on v1 and v2. However, I also want to list v3 of those previous duplicate observations though it is not included in duplicates list logic. In other words, I check duplicates between v1 and v2, but want to list the full observations with common v1 and v2.

    Is there any salient solution to this?

    Thanks in advanced.

  • #2
    Code:
    duplicates tag v1 v2, gen(flag)
    list if flag

    Comment

    Working...
    X