get_estimation_gini.Rd
This function allows you to estimate the Gini coefficient
get_estimation_gini(
data = ech::toy_ech_2018,
variable = NULL,
by = NULL,
level = NULL,
ids = NULL,
numero = "numero",
estrato = NULL,
pesoano = "pesoano",
bootstrap = FALSE,
r = NULL
)
ech data frame
Variable name of income without rental value per capita deflated
data frame column
is household ("h") or individual ("i").
Variable name of cluster
Variable name of household id
Variable name of strata
Variable name of weights
Logical value
A number of replicas
table
Disclaimer: This script is not an official INE product. Aviso: El script no es un producto oficial de INE.
Other estimation:
get_estimation_gpg()
,
get_estimation_mean()
,
get_estimation_median()
,
get_estimation_qsr()
,
get_estimation_ratio()
,
get_estimation_total()
,
set_design()
# \donttest{
toy_ech_2018 <- income_constant_prices(data = ech::toy_ech_2018, index = "IPC", level = "R",
base_month = "01", base_year = "2005")
#> Variables have been created:
#> y_pc (income per capita current prices / ingreso per capita a precios corrientes)
#> y_pc_d_r (income per capita deflated / ingreso per capita deflactado);
#> rv_d_r (rental value deflated / valor locativo deflactado);
#> y_wrv_d_r (income without rental value deflated / ingreso sin valor locativo deflactado) &
#> y_wrv_pc_d_r (income without rental value per capita deflated / ingreso sin valor locativo per capita deflactado)
get_estimation_gini(data = toy_ech_2018, variable = "y_wrv_pc_d_r", level = "i")
#> value
#> 1 36.91149
# }