View source: R/gd_estimate_distribution.R
gd_estimate_distribution | R Documentation |
Estimate distribution (grouped data)
gd_estimate_distribution(
welfare,
population,
gd_type,
mean,
povline,
popshare = NULL
)
welfare |
numeric: Cumulative proportion of welfare held by that proportion of the population (Lorenz Curve). |
population |
numeric: Cumulative proportion of population. |
gd_type |
integer: Type of data distribution
If |
mean |
numeric: Data mean |
povline |
numeric: Poverty line. |
popshare |
numeric: Share of population living below the poverty line. Optional. |
data.frame
welfare <- c(24.84, 35.8, 45.36, 55.1, 64.92, 77.08, 91.75, 110.64, 134.9,
167.76, 215.48, 261.66, 384.97)
population <- c(0.92, 2.47, 5.11, 7.9, 9.69, 15.24, 13.64, 16.99, 10, 9.78,
3.96, 1.81, 2.49)
gd_estimate_distribution(welfare = welfare,
population = population,
gd_type = 5,
mean = 109.9,
povline = 89)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.