View source: R/gd_compute_dist_stats.R
gd_compute_dist_stats | R Documentation |
Compute distributional statistics for grouped data by selecting the best functional fit for the Lorenz curve (either beta or quadratic).
gd_compute_dist_stats(welfare, population, mean, p0 = 0.5)
welfare |
numeric: Cumulative proportion of welfare held by that proportion of the population (Lorenz Curve). |
population |
numeric: Cumulative proportion of population. |
mean |
numeric: Welfare mean. |
p0 |
numeric: TO BE DOCUMENTED. |
list
# Compute distributional statistics
res <- wbpip:::gd_compute_dist_stats(
welfare = grouped_data_ex2$welfare,
population = grouped_data_ex2$weight,
mean = 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.