From 7fae45af9455b8bed98281d12f14d7a7861eea16 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 20 Aug 2022 16:44:25 +0200 Subject: [PATCH] Add plotly figures to scripts --- _drivers-of-inequality-benin.qmd | 6 +++ _drivers-of-inequality-djibouti.qmd | 6 +++ _drivers-of-inequality-uganda.qmd | 6 +++ _drivers-of-inequality-vietnam.qmd | 6 +++ _quarto.yml | 2 +- data-prep.qmd | 71 +++++++++++++++++++++++++++++ index.qmd | 11 +++++ 7 files changed, 107 insertions(+), 1 deletion(-) create mode 100644 data-prep.qmd diff --git a/_drivers-of-inequality-benin.qmd b/_drivers-of-inequality-benin.qmd index ef90194..563410c 100644 --- a/_drivers-of-inequality-benin.qmd +++ b/_drivers-of-inequality-benin.qmd @@ -20,6 +20,12 @@ At the same time, the country's poverty rate, even measured based on the interna from a relative rate of households in poverty at 18.8% in 2019, to 18.7% in 2020 and 18.3% at the end of 2021, with the reduction threatened to be slowed further through increased prices on food and energy [@WorldBank2022b]. +```{python} +#| label: gini-ben +#| fig-cap: "Gini index of consumption per capita for Benin. Source: Author's elaboration based on UNU-WIDER WIID (2022)." +plot_consumption_gini_percapita(ben) +``` + Based on its national poverty line, Benin's overall poverty rate is 38.5%, though it hides a strong spatial disparity between rural and urban households with 44.2% to 31.4% households in poverty respectively [@WorldBank2022b]. diff --git a/_drivers-of-inequality-djibouti.qmd b/_drivers-of-inequality-djibouti.qmd index 96e06e0..6dda52d 100644 --- a/_drivers-of-inequality-djibouti.qmd +++ b/_drivers-of-inequality-djibouti.qmd @@ -17,6 +17,12 @@ The country's GDP has averaged roughly 6% per year before the Covid-19 pandemic However, the country's inequality levels are some of the highest in the world and its poverty rates are extreme. Additionally in many cases there is a lack of data or the data itself are lacking in several dimensions which hinders creating a cohesive picture or plan. +```{python} +#| label: gini-dji +#| fig-cap: "Gini index of consumption per capita for Djibouti. Source: Author's elaboration based on UNU-WIDER WIID (2022)." +plot_consumption_gini_percapita(dji) +``` + Poverty in Djibouti is both very high and marked by high deprivation. Using the national poverty line of around 2.18USD (2011 PPP) the poverty rate for the overall country by consumption is estimated at 21.1% in 2017, diff --git a/_drivers-of-inequality-uganda.qmd b/_drivers-of-inequality-uganda.qmd index f4529ad..0298375 100644 --- a/_drivers-of-inequality-uganda.qmd +++ b/_drivers-of-inequality-uganda.qmd @@ -23,6 +23,12 @@ Additionally, he sees quintile inequalities primarily driven by the highest quin also finding a significantly higher coefficient for the first quintile (0.14), however. These inequality levels remain mostly unchanged from 2012/13 to 2019/20 but hide qualitative dimensions such as the shift out of a lower-income agricultural livelihood predominantly taking place among older men who have at least some level of formal education and are from already more well-off households [@Atamanov2022]. +```{python} +#| label: gini-uga +#| fig-cap: "Gini index of consumption per capita for Uganda. Source: Author's elaboration based on UNU-WIDER WIID (2022)." +plot_consumption_gini_percapita(uga) +``` + The World Bank [-@Atamanov2022] report goes on to examine the share of people below the poverty line in Uganda: around 30% of households are in a state of poverty in 2019/20, diff --git a/_drivers-of-inequality-vietnam.qmd b/_drivers-of-inequality-vietnam.qmd index e1c2ec1..345adc1 100644 --- a/_drivers-of-inequality-vietnam.qmd +++ b/_drivers-of-inequality-vietnam.qmd @@ -29,6 +29,12 @@ though absolute income may be rising, with the top quintile having 9.2 times the Economic inequality and poverty in Vietnam thus underlies an intersectional focus, between ethnic minorities, regional situations, rural-urban divides and gendered lines, one which exogenous shocks can rapidly exacerbate as the example of the COVID-19 pandemic has recently shown [@Ebrahim2021]. +```{python} +#| label: gini-vnm +#| fig-cap: "Gini index of consumption per capita for Vietnam. Source: Author's elaboration based on UNU-WIDER WIID (2022)." +plot_consumption_gini_percapita_ruralurban(vnm) +``` +