重要的
感谢您对该项目的关注。但是,请注意,该存储库不再维护。
对于任何关键需求,请考虑分配存储库并进行自己的更新。
警告
我对此软件包访问的数据的有效性和完整性感到非常担忧。我敦促用户在使用此工具时要谨慎和怀疑,并为其工作寻求替代来源。
这是官方的[注意:我不再隶属于世界不平等实验室,无法提供任何保证该命令将来将保持功能的功能]世界上的Stata命令不平等数据库(wid.world)。它使用户可以将数据直接从wid.world下载到Stata中。
用户应直接从SSC安装命令:
ssc install wid
安装后可用该命令的文档使用:
help wid
绘制法国长期进化的财富不平等:
wid, indicators(shweal) areas(FR) perc(p90p100 p99p100) ages(992) pop(j) clear
// Reshape and plot
reshape wide value, i(year) j(percentile) string
label variable valuep90p100 " Top 10% share "
label variable valuep99p100 " Top 1% share "
graph twoway line value * year, title( " Wealth inequality in France " ) ///
ylabel(0.2 " 20% " 0.4 " 40% " 0.6 " 60% " 0.8 " 80% " ) ///
subtitle( " equal-split adults " ) ///
note( " Source: WID.world " )
绘制自1978年以来中国,法国和美国的最低人口最低人口的税前国民收入的演变(按日志规模):
// Download and store the 2017 USD PPP exchange rate
wid, indicators(xlcusp) areas(FR US CN) year(2017) clear
rename value ppp
tempfile ppp
save " `ppp' "
wid, indicators(aptinc) areas(FR US CN) perc(p0p50) year(1978 / 2017) ages(992) pop(j) clear
merge n:1 country using " `ppp' " , nogenerate
// Convert to 2017 USD PPP (thousands)
replace value = value/ppp/1000
// Reshape and plot
keep country year value
reshape wide value, i(year) j(country) string
label variable valueFR " France "
label variable valueUS " United States "
label variable valueCN " China "
graph twoway line value * year, yscale(log) ylabel(1 2 5 10 20) ///
ytitle( " 2017 PPP USD (000's) " ) ///
title( " Average pre-tax national income of the bottom 50% " ) subtitle( " equal-split adults " ) ///
note( " Source: WID.world " ) legend(rows(1))
绘制法国,德国,英国和美国的每个成年人平均国民收入的平均净国民收入的长期演变(按日志规模):
// Download and store the 2017 USD PPP exchange rate
wid, indicators(xlcusp) areas(FR US DE GB) year(2017) clear
rename value ppp
tempfile ppp
save " `ppp' "
// Download net national income in constant 2017 local currency
wid, indicators(anninc) areas(FR US DE GB) age(992) clear
merge n:1 country using " `ppp' " , nogenerate
// Convert to 2017 USD PPP (thousands)
replace value = value/ppp/1000
// Reshape and plot
keep country year value
reshape wide value, i(year) j(country) string
label variable valueFR " France "
label variable valueUS " United States "
label variable valueDE " Germany "
label variable valueGB " United Kingdom "
graph twoway line value * year, yscale(log) ///
ytitle( " 2017 PPP USD (000's) " ) ylabel(2 5 10 20 50 100) ///
title( " Average net national income " ) subtitle( " per adult " ) ///
note( " Source: WID.world " )