Description Usage Arguments Value
Makes a Lorenz Curve Function using information about means and size of income strata
1 2 3 4 5 6 | make_lorenz_fromMeansByStrata(
group_size,
group_means,
combine_function = "mean",
precision = 5e-05
)
|
group_size |
A numerical vector informing the size (i.e population of proportion) of each group |
group_means |
A numerical vector informing the mean income of each group. Must have the same number of elements tha 'group_size' |
Returns a function which takes a vector of probabilities as inputs (p) and gives points at the Lorenz Curve as outputs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.