household_type.Rd
This function allows you to calculate the household type for each household in the survey. A household is composed of one or more people who occupy a housing unit.
household_type(
data = ech::toy_ech_2018,
numero = "numero",
e26 = "e26",
e27 = "e27",
e30 = "e30"
)
data frame with ECH microdata
Variable name of household id
Variable name of sex
Variable name of age
Variable name of householder
data.frame
Disclaimer: This script is not an official INE product. Aviso: El script no es un producto oficial de INE.
Other demographic:
age_groups()
# \donttest{
toy_ech_2018 <- household_type(data = ech::toy_ech_2018)
#> A variable has been created:
#> household_type (Tipo de hogar)
# }