View source: R/gd_compute_poverty_stats.R
gd_compute_poverty_stats | R Documentation |
Compute poverty statistics for grouped data by selecting the best functional fit for the Lorenz curve (either beta or quadratic).
gd_compute_poverty_stats(
welfare,
povline,
population,
requested_mean,
popshare = NULL,
default_ppp = NULL,
ppp = NULL,
p0 = 0.5
)
welfare |
numeric: Cumulative proportion of welfare held by that proportion of the population (Lorenz Curve). |
povline |
numeric: Poverty line. |
population |
numeric: Cumulative proportion of population. |
requested_mean |
numeric: Welfare mean. |
popshare |
numeric: Share of population living below the poverty line. Optional. |
default_ppp |
numeric: Default purchasing power parity. |
ppp |
numeric: PPP request by user. |
p0 |
numeric: TO BE DOCUMENTED. |
list
# Compute poverty stats
res <- wbpip:::gd_compute_poverty_stats(
welfare = grouped_data_ex2$welfare,
population = grouped_data_ex2$weight,
povline = 1.9 * 365 / 12,
requested_mean = 50,
default_ppp = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.