Hello,
Using the function "Expand 3" or "Expand 5", I would like to be able to distinguish the new observations created so that I can modify them independently of each other.
For example, I use the following line of code:
"expand 3 if num_quest==787 & year_start==1991, gen(dupindicator)"
*dupindicator= duplicate indicator
This creates one observation with dupindicator=0 and 2 observations with dupindicator=1.
How to create dupindicators with different values (ex. 0, 1, 2)?
Using the function "Expand 3" or "Expand 5", I would like to be able to distinguish the new observations created so that I can modify them independently of each other.
For example, I use the following line of code:
"expand 3 if num_quest==787 & year_start==1991, gen(dupindicator)"
*dupindicator= duplicate indicator
This creates one observation with dupindicator=0 and 2 observations with dupindicator=1.
How to create dupindicators with different values (ex. 0, 1, 2)?

Comment