I am working with a panel of UK industries from 1997-2018, and wish to group some of these industries. I have already created an industry identifier variable using the command
encode industry, gen(ID)
Each industry is represented by a letter from A to S, and the industries I wish to group together are B,D,E,K,L
How exactly can I achieve this? Ideally I will generate a variable named something like highprodind which is equal to 1 for the aforementioned industries.
Thanks
0 Response to Creating subgroups in panel data
Post a Comment