I want to create groups for propensity score matching. If I want to classify the data into different age groups, I can create a new variable with all zeroes and give the values I want to each age group using replace. But is there a way to use egen along with group to do that?
I tried egen age_1 = group(age>=17 & age<=20) but this seems to be incorrect.
0 Response to Creating a Group Variable
Post a Comment