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
Related Posts with Creating subgroups in panel data
Creating new variables on the basis of relationship to head, age and wages?Hi, I want to do two things in STATA but I do not know the commands to it. The data is of two rounds…
Putpdf with R2Hi all, I'm trying to save some regression results, and I'm using putpdf: Code: putpdf begin //…
pooled mean group estimationHello. I get errors when I run below command and could not figure out what is the cause. It would be…
drop in all rangeHi there, I have some difficulties dropping observations. If the ID did not receive subsidy in all…
Using for loop to plot multiple graphs.Hey Everyone, I am trying to plot multiple graphs using a for loop. At the time, I am trying to mak…
Subscribe to:
Post Comments (Atom)
0 Response to Creating subgroups in panel data
Post a Comment