Announcement

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

  • Creating Unique Case Id

    Hi everyone,
    I am new to Stata. I have a very small question,
    My data looks like this:

    IGO_ID Case_ID
    12 1201
    12 1202
    12 1203

    What I am trying to do is to create these unique case ids which all start with 120.
    I tried the code gen case_id= _n. but cannot add IGO_ID 120 in the beginning.

    Looking forward to your answer!
    Last edited by Ece Kural; 03 Apr 2018, 11:40.

  • #2
    FAQ https://www.stata.com/support/faqs/d...p-identifiers/

    Comment

    Working...
    X