Dear all,
Since I have to write my thesis I am intensively using Stata. For the major part I am able to find all the questions I have. With respect to this issue, however, I seem to be unable to find what I am looking for. Perhaps my knowledge of the relevant words is not sufficient, therefore I'd like to ask your help with the following issue.
My dataset is in the form of panel data. There are different regions (40 to be precise) that all have a periode ranging from 1970 - 1993. Usually I have (and want to have it) in this right format that is workable. Now, however, I have data for different industries in a certain region. Thus there are now 2 variables that determine in what category I work, namely regions and industry (type). As with the rest of my data, I want everything to be in the category of regions. Might this be unclear, then maybe this table clarifies it a bit. Currently it is in this format
Since I need to calculate Shannon's Entropy (if this doesn't ring a bell, then one may as well ignore it), I'd rather have my data in this format:
Now employment_1 represents the employment for industry 1, employment_2 the employment for industry 2 and so on. I hope you get the idea and perhaps will be able to help me.
Thank you in advance.
Kind regards,
Dennis
Since I have to write my thesis I am intensively using Stata. For the major part I am able to find all the questions I have. With respect to this issue, however, I seem to be unable to find what I am looking for. Perhaps my knowledge of the relevant words is not sufficient, therefore I'd like to ask your help with the following issue.
My dataset is in the form of panel data. There are different regions (40 to be precise) that all have a periode ranging from 1970 - 1993. Usually I have (and want to have it) in this right format that is workable. Now, however, I have data for different industries in a certain region. Thus there are now 2 variables that determine in what category I work, namely regions and industry (type). As with the rest of my data, I want everything to be in the category of regions. Might this be unclear, then maybe this table clarifies it a bit. Currently it is in this format
region | industry | year | employment | production |
Country A | industry 1 | 1970 | xxx | xxx |
Country A | industry 2 | 1970 | xxx | xxx |
Country B | industry 1 | 1970 | xxx | xxx |
Country B | industry 2 | 1970 | xxx | xxx |
region | year | employment_1 | production_1 | employment_2 | production_2 | employment_3 | production_3 |
Country A | 1970 | xxx | xxx | xxx | xxx | xxx | xxx |
Country B | 1970 | xxx | xxx | xxx | xxx | xxx | xxx |
Thank you in advance.
Kind regards,
Dennis
Comment