get_estimation_gini.RdThis function allows you to estimate the Gini coeficient
get_estimation_gini( data = ech::toy_ech_2018, variable = NULL, by = NULL, level = NULL, ids = NULL, numero = "numero", estrato = NULL, pesoano = "pesoano", name = "estimacion" )
| data | ech data frame |
|---|---|
| variable | income without rental value per capita deflated |
| by | variable |
| level | household or individual |
| ids | upm |
| numero | Variable name of household id |
| estrato | Variable name of strata |
| pesoano | Variable name of weights |
| name | nombre |
table
Disclaimer: This script is not an official INE product. Aviso: El script no es un producto oficial de INE.
# \donttest{ toy_ech_2018 <- income_constant_prices(data = ech::toy_ech_2018, ipc = "R", base_month = "01", base_year = "2005")#> #> #> #> #> #> #>get_estimation_gini(data = toy_ech_2018, level = "h")#> gini SE #> y_wrv_pc_d_r 0.36685 0.0155# }