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
Tải dữ liệu và định dạng bảng dài
. wbopendata, indicator(BN.KLT.DINV.CD) long clear Metadata for indicator BN.KLT.DINV.CD ---------------------------------------------------------------------------------------------------------------- Name: Foreign direct investment, net (BoP, current US$) ---------------------------------------------------------------------------------------------------------------- Collection: 2 World Development Indicators ---------------------------------------------------------------------------------------------------------------- Description: Foreign direct investment are the net inflows of investment to acquire a lasting management interest (10 percent or more of voting stock) in an enterprise operating in an economy other than that of the investor. It is the sum of equity capital, reinvestment of earnings, other long-term capital, and short-term capital as shown in the balance of payments. This series shows total net FDI. In BPM6, financial account balances are calculated as the change in assets minus the change in liabilities. Net FDI outflows are assets and net FDI inflows are liabilities. Data are in current U.S. dollars. ---------------------------------------------------------------------------------------------------------------- Note: International Monetary Fund, Balance of Payments Statistics Yearbook and data files. ---------------------------------------------------------------------------------------------------------------- Topic(s): 3 Economy and Growth ; 7 Financial Sector ---------------------------------------------------------------------------------------------------------------- . tab countryname in 1/10 Country Name | Freq. Percent Cum. ----------------------------------------+----------------------------------- Aruba | 10 100.00 100.00 ----------------------------------------+----------------------------------- Total | 10 100.00
Tải dữ liệu một chỉ số cho các quốc gia
. wbopendata, country(ago;bdi;chi;dnk;esp) indicator(sp.pop.0610.fe.un) clear Metadata for indicator SP.POP.0610.FE.UN ---------------------------------------------------------------------------------------------------------------- Name: Population, ages 6-10, female ---------------------------------------------------------------------------------------------------------------- Collection: 12 Education Statistics ---------------------------------------------------------------------------------------------------------------- Description: Population, ages 6-10, female is the total number of females age 6-10. ---------------------------------------------------------------------------------------------------------------- Note: UNESCO Institute for Statistics (Derived) ---------------------------------------------------------------------------------------------------------------- Topic(s): 4 Education ---------------------------------------------------------------------------------------------------------------- . tab countryname in 1/5 Country Name | Freq. Percent Cum. ----------------+----------------------------------- Angola | 1 20.00 20.00 Burundi | 1 20.00 40.00 Channel Islands | 1 20.00 60.00 Denmark | 1 20.00 80.00 Spain | 1 20.00 100.00 ----------------+----------------------------------- Total | 5 100.00