household_type: This function allows you to calculate the household type for...

View source: R/household_type.R

household_typeR Documentation

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.

Description

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.

Usage

household_type(
  data = ech::toy_ech_2018,
  numero = "numero",
  e26 = "e26",
  e27 = "e27",
  e30 = "e30"
)

Arguments

data

data frame with ECH microdata

numero

Variable name of household id

e26

Variable name of sex

e27

Variable name of age

e30

Variable name of householder

Details

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

Value

data.frame

See Also

Other demographic: age_groups()

Examples


toy_ech_2018 <- household_type(data = ech::toy_ech_2018)


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