Hello, I have created group mean for each region using "bys subregion: egen meanvalue= mean(activity)", but now I am left with multiple observations for each row, which I want to get rid off. This is:
I have this for many regions. just want to have one row per region, is there a straightforward to do this in stata? Thanks.
| subregion | meanvalue |
| regiona | 0.184292 |
| regiona | 0.184292 |
| regiona | 0.184292 |
| regiona | 0.184292 |
| regiona | 0.184292 |
| regionb | 0.444332 |
| regionb | 0.444332 |
| regionb | 0.444332 |
| regionb | 0.444332 |
| regionb | 0.444332 |

Comment