Xử lý dữ liệu
Tải dữ liệu World Bank trực tiếp trên Stata
Lệnh wbopendata giúp tự động hóa việc tải và cập nhật dữ liệu trên Stata
Lập bản đồ các giá trị mới nhất về số thuê bao điện thoại di động toàn cầu
. qui tempfile tmp . wbopendata, indicator(it.cel.sets.p2) long clear latest Metadata for indicator IT.CEL.SETS.P2 ---------------------------------------------------------------------------------------------------------------- Name: Mobile cellular subscriptions (per 100 people) ---------------------------------------------------------------------------------------------------------------- Collection: 2 World Development Indicators ---------------------------------------------------------------------------------------------------------------- Description: Mobile cellular telephone subscriptions are subscriptions to a public mobile telephone service that provide access to the PSTN using cellular technology. The indicator includes (and is split into) the number of postpaid subscriptions, and the number of active prepaid accounts (i.e. that have been used during the last three months). The indicator applies to all mobile cellular subscriptions that offer voice communications. It excludes subscriptions via data cards or USB modems, subscriptions to public mobile data services, private trunked mobile radio, telepoint, radio paging and telemetry services. ---------------------------------------------------------------------------------------------------------------- Note: International Telecommunication Union (ITU) World Telecommunication ICT Indicators Database ---------------------------------------------------------------------------------------------------------------- Topic(s): 9 Infrastructure ---------------------------------------------------------------------------------------------------------------- . local labelvar "`r(varlabel1)'" . sort countrycode . save `tmp', replace (note: file C:\Users\admin\AppData\Local\Temp\ST_323c_000001.tmp not found) file C:\Users\admin\AppData\Local\Temp\ST_323c_000001.tmp saved . qui sysuse world-d, clear . qui merge countrycode using `tmp' . qui sum year . local avg = string(`r(mean)',"%16.1f") . spmap it_cel_sets_p2 using "world-c.dta", id(_ID) /// > clnumber(20) fcolor(Reds2) ocolor(none ..) /// > title("`labelvar'", size(*1.2)) /// > legstyle(3) legend(ring(1) position(3)) /// > note("Source: World Development Indicators (latest available year: `avg') using Azevedo, J.P. > (2011) wbopendata: Stata module to" "access World Bank databases, Statistical Software Components S457234 Bos > ton College Department of Economics.")