Bài 3: Xử lý dữ liệu Indicator 12.6.1

Bây giờ, thay vì click vào box ‘Select Data Series’, ta click và +Select và chọn GOAL 12, và sau dó là Indicator 12.6.1:

Hoặc, khi đã biết nội dung của Indicator 12.6.1 thì ta cũng có thể nhập số 12.6.1 vào box ‘Select Data Series’.

Ta chọn giai đoạn 2015-2023 (vì tại thời điểm viết hướng dẫn này chưa có data của 2024 và 2025).

Sau khi click ‘Show Results’, ta chỉ thấy duy nhất một Series:

Click vào dấu + của Series này, và click ‘Download EXL’ để tải về. Sau đó, đặt lại tên un_indicator12.6.1.xlsx.

Đây là dữ liệu thô trên Excel (có chút khác so với un_indicator1.2.2_4.xlsx).

Với ‘Activity’, thì ta sẽ đổi lại thành ‘industry’ và mã hóa lại theo ngành:

gen industry = .

  • replace industry = 0 if industry_code == “TOTAL”
  • replace industry = 1 if industry_code == “ISIC4_A”
  • replace industry = 2 if industry_code == “ISIC4_B”
  • replace industry = 3 if industry_code == “ISIC4_C”
  • replace industry = 4 if industry_code == “ISIC4_E”
  • replace industry = 5 if industry_code == “ISIC4_F”
  • replace industry = 6 if industry_code == “ISIC4_G”
  • replace industry = 7 if industry_code == “ISIC4_H”
  • replace industry = 8 if industry_code == “ISIC4_I”
  • replace industry = 9 if industry_code == “ISIC4_J”
  • replace industry = 10 if industry_code == “ISIC4_K”
  • replace industry = 11 if industry_code == “ISIC4_L”
  • replace industry = 12 if industry_code == “ISIC4_M”
  • replace industry = 13 if industry_code == “ISIC4_N”
  • replace industry = 14 if industry_code == “ISIC4_P”
  • replace industry = 15 if industry_code == “ISIC4_Q”
  • replace industry = 16 if industry_code == “ISIC4_R”
  • replace industry = 17 if industry_code == “ISIC4_S”

label define industry_lbl ///
0 “Total” ///
1 “Agriculture, forestry and fishing” ///
2 “Mining and quarrying” ///
3 “Manufacturing” ///
4 “Water supply, sewerage and waste management” ///
5 “Construction” ///
6 “Wholesale and retail trade” ///
7 “Transportation and storage” ///
8 “Accommodation and food service activities” ///
9 “Information and communication” ///
10 “Financial and insurance activities” ///
11 “Real estate activities” ///
12 “Professional, scientific and technical activities” ///
13 “Administrative and support services” ///
14 “Education” ///
15 “Human health and social work” ///
16 “Arts, entertainment and recreation” ///
17 “Other service activities”

label values industry industry_lbl

label variable industry ///
“Industry”

Kết quả chính:

Để lại một bình luận

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *