Description Usage Arguments Value References See Also Examples
Computation of topshare according to a functional form and its parameters
1 | compute_topshare(p, function_form, par1, par2, par3 = NA, par4 = NA)
|
p |
numeric, value of the topshare |
function_form |
string, functional form in "KP", "RGKO", "ARNOLD", "CHOTIKAPANICH", "SARABIA", "ORTEGA" and "ROHDE" |
par1 |
numeric, parameter of the functional form |
par2 |
numeric, parameter of the functional form |
par3 |
numeric, parameter of the functional form |
par4 |
numeric, parameter of the functional form |
The value of the topshare according a functional form and its parameters
Belz (2019), Estimating Inequality Measures from Quantile Data https://halshs.archives-ouvertes.fr/halshs-02320110
compute_Gini
, compute_Pietra
, compute_TL
, compute_TH
1 2 3 4 5 6 7 | data("tabulated_income")
LC_tabulated_income = run_compute_LC(ID=tabulated_income$ID, p=tabulated_income$prop_cum_population, bound_min = tabulated_income$bound_min, bound_max = tabulated_income$bound_max, nb = tabulated_income$prop_population, method = "CondExp")
Optim_LC = run_optim_LC(ID = unique(LC_tabulated_income$ID),income_cum = LC_tabulated_income$income_cum, population_cum=LC_tabulated_income$population_cum, function_form = c("KP", "RGKO", "ARNOLD", "CHOTIKAPANICH", "SARABIA", "ORTEGA", "ROHDE"))
Optim_LC
compute_topshare(p = 0.95, function_form = "KP", par1 = 1, par2 = 1.450156)
0.1164444
Optim_LC %>% ungroup() %>% rowwise() %>% mutate(topshare95= compute_topshare(p=0.95, function_form, par1, par2, par3, par4)) %>% select(ID, function_form, topshare95)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.