Description Usage Arguments Value References See Also Examples
Means of the bins according the conditional expectation or midpoint methods
1 2 | compute_LC(ID, p, bound_min, bound_max, nb, method = "CondExp",
whichpareto = 0.8)
|
ID |
vector of ID area |
p |
numeric, vector of probabilities |
bound_min |
numeric, minimum of the interval |
bound_max |
numeric, maximum of the interval |
nb |
numeric, number of the interval |
method |
string, type of methods ("CondExp" for conditional expectation method of "Midpoint" for midpoint method) |
whichpareto |
numeric, probability from which pareto tail is assumed |
A dataframe with the bounds, the means, the cumulative income shares and the cumulative population shares.
Belz (2019), Estimating Inequality Measures from Quantile Data https://halshs.archives-ouvertes.fr/halshs-02320110
1 2 3 4 | data("tabulated_income")
BelAir5 = tabulated_income[tabulated_income$iris=="Bel Air 5",]
compute_LC(ID=BelAir5$iris, p=BelAir5$prop_cum_population, bound_min = BelAir5$bound_min, bound_max = BelAir5$bound_max, nb = BelAir5$prop_population, method = "CondExp")
compute_LC(ID=BelAir5$iris, p=BelAir5$prop_cum_population, bound_min = BelAir5$bound_min, bound_max = BelAir5$bound_max, nb = BelAir5$prop_population, method = "Midpoint")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.