I think there are a lot cases when we use egen to form the average by group_id. Then we want to know the mean value of these averages. As far as I concerned, there are 2 methods.
Can anyone tell me which one is preferred?
Code:
*method1: duplicates drop id, force *method 2: collapse varlist, by(id)
Comment