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!
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!
Comment