This function allows you to calculate the Household Income Quantiles

income_quantiles(
  data = ech::toy_ech_2018,
  quantile = 5,
  weights = "pesoano",
  income = "y_pc_d"
)

Arguments

data

data.frame

quantile

Variable name of quintil (5) or decil (10). Default: 5

weights

Variable name of ponderation variable. Default: "pesoano"

income

Variable name of income constant price. Default: "y_pc_d"

Value

data.frame

Details

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

Examples

# \donttest{
toy_ech_2018 <- income_constant_prices(data = ech::toy_ech_2018)
#> Variables have been created: 
#>  	 y_pc (income per capita current prices / ingreso per capita a precios corrientes);
#>     y_pc_d  (income per capita deflated / ingreso per capita deflactado);
#>          rv_d (rental value deflated / valor locativo deflactado);
#>          y_wrv_d (income without rental value deflated / ingreso sin valor locativo deflactado) &
#>          y_wrv_pc_d (income without rental value per capita deflated / ingreso sin valor locativo per capita deflactado)
toy_ech_2018 <- income_quantiles(data = toy_ech_2018)
#> A variable has been created: 
#>  	 quintil (quintil de ingresos)
# }