代码拉取完成,页面将自动刷新
*! wid_example3 v1.0.2 Thomas Blanchet 20jun2017
// Plot the long run evolution of average net national income per adult
// in US, FR, DE and GB, in log scale
program wid_example3
version 13
quietly {
preserve
// Download and store the 2016 USD PPP exchange rate
wid, indicators(xlcusp) areas(FR US DE GB) year(2016) clear
rename value ppp
tempfile ppp
save "`ppp'"
// Download net national income in constant 2016 local currency
wid, indicators(anninc) areas(FR US DE GB) age(992) clear
merge n:1 country using "`ppp'", nogenerate
// Convert to 2016 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("2016 PPP USD (000')") ylabel(2 5 10 20 50 100) ///
title("Average net national income") subtitle("per adult") ///
note("Source: WID.world")
restore
}
end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。