This function allows you to calculate the household income constant prices

income_constant_prices(
  data = ech::toy_ech_2018,
  base_month = 6,
  base_year = 2018,
  index = "IPC",
  level = "G",
  mes = "mes",
  ht11 = "ht11",
  ht13 = "ht13",
  ht19 = "ht19"
)

Arguments

data

data.frame with ECH microdata

base_month

baseline month

base_year

baseline year

index

IPC or IPAB

level

General ("G") or Regional ("R")

mes

month

ht11

Variable name of income. Default: ht11

ht13

Variable name of rental value. Default: ht13

ht19

Variable name of number of individuals in the household. Default: ht19

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)
# }