Dear everyone,
I have a repeated cross-sectional data with 5792 observations, 24 birthplaces and 8 years of surveys. How do I create 192 groups based on birthplaces, which are defined such
that each individual is a member of exactly one cohort, which is the same for all periods?
I have tried
however, it seems like it is incorrect because the one cohort only is available for 1 year, which is not what I am looking for.
Thank you in advance, and stay safe.
I have a repeated cross-sectional data with 5792 observations, 24 birthplaces and 8 years of surveys. How do I create 192 groups based on birthplaces, which are defined such
that each individual is a member of exactly one cohort, which is the same for all periods?
I have tried
Code:
egen group_ID=group(year birth_place),
Thank you in advance, and stay safe.
Comment