Code:
* Example generated by -dataex-. For more info, type help dataex clear input str22 country_name int year double var1 str125 sector str53 occupation "Albania" 2015 .398 "A. Agriculture; forestry and fishing" "1. Managers" "Albania" 2016 .067 "A. Agriculture; forestry and fishing" "1. Managers" "Albania" 2017 . "A. Agriculture; forestry and fishing" "1. Managers" "Albania" 2018 . "A. Agriculture; forestry and fishing" "1. Managers" "Albania" 2015 .237 "A. Agriculture; forestry and fishing" "2. Professionals" "Albania" 2016 .243 "A. Agriculture; forestry and fishing" "2. Professionals" "Albania" 2017 .193 "A. Agriculture; forestry and fishing" "2. Professionals" "Albania" 2018 .668 "A. Agriculture; forestry and fishing" "2. Professionals" "Albania" 2019 .413 "A. Agriculture; forestry and fishing" "2. Professionals" "Albania" 2015 . "A. Agriculture; forestry and fishing" "3. Technicians and associate professionals" "Albania" 2016 . "A. Agriculture; forestry and fishing" "3. Technicians and associate professionals" "Albania" 2017 .434 "A. Agriculture; forestry and fishing" "3. Technicians and associate professionals" "Albania" 2018 .335 "A. Agriculture; forestry and fishing" "3. Technicians and associate professionals" "Albania" 2019 .296 "A. Agriculture; forestry and fishing" "3. Technicians and associate professionals" "Albania" 2015 . "A. Agriculture; forestry and fishing" "4. Clerical support workers" end
Code:
collapse (lastnm) var1, by (country_name sector occupation)
Code:
collapse (lastnm) var1, by (country_name sector occupation (year))
Thanks a lot for any help you can provide.
Regards,
Adam

Comment