get_estimation_gini: This function allows you to estimate the Gini coefficient

get_estimation_giniR Documentation

This function allows you to estimate the Gini coefficient

Description

This function allows you to estimate the Gini coefficient

Usage

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
)

Arguments

data

ech data frame

variable

Variable name of income without rental value per capita deflated

by

data frame column

level

is household ("h") or individual ("i").

ids

Variable name of cluster

numero

Variable name of household id

estrato

Variable name of strata

pesoano

Variable name of weights

bootstrap

Logical value

r

A number of replicas

Details

Disclaimer: This script is not an official INE product. Aviso: El script no es un producto oficial de INE.

Value

table

See Also

Other estimation: get_estimation_gpg(), get_estimation_mean(), get_estimation_median(), get_estimation_qsr(), get_estimation_ratio(), get_estimation_total(), set_design()

Examples


toy_ech_2018 <- income_constant_prices(data = ech::toy_ech_2018, index = "IPC", level = "R",
                                       base_month = "01", base_year = "2005")
get_estimation_gini(data = toy_ech_2018, variable = "y_wrv_pc_d_r", level = "i")


calcita/ech documentation built on March 2, 2024, 7:54 a.m.