Countrycode Variable -----Year ---Agriculture Mining Sum ShareAgriculture
EGY------------- value----- ----1970----- 5 -------------10------- 15 -------5/15
EGY------------- value----- ----1970----- 6 -------------11-------- 17 -------6/17
EGY------------- employment 1971 -----1 --------------2 ----------3------- 1/3
EGY------------- employment 1971 -----1--------------- 2--------- 3 --------1/3
Hello,
I would appreciate advice on the following issue;
The table above is a simplified illustration from the GGDC 10 sector database, only using data on 2 sectors.
under the variable 'Variable' it lists value, which is the value added for all sectors, and it lists employment for all sectors as seperate observations.
I created a variable ShareAgriculture, which is the agriculture's share of the Sum.
What I want to achieve is to replace the ShareAgriculture values where Variable = 'value' by the observation where Variable is = 'employment', because I am only interested in employment shares, not in value shares, and I want them to be in the same observations that list values of the sectors. Moreover, i want to do this for all observations where the combination of countrycode and year match.
Thanks in advance for help!
Comment