I have panel data and want to generate a unique identifier for each observation based on the participant's unique ID (numeric) and the wave of study (1-8). I want this to be replicable across multiple related datasets that will later be merged using the unique observation identifier (the participant IDs and wave variables are common across datasets).
What functions of generate (or other commands) can I use to create this replicable, unique identifier? Ie, in an ideal world I'd just have something like 2103_03 to represent participant #2103 in wave 03.
What functions of generate (or other commands) can I use to create this replicable, unique identifier? Ie, in an ideal world I'd just have something like 2103_03 to represent participant #2103 in wave 03.
Comment