scripts.dwelling

Load dwelling information from SOEP (Socio-Economic Panel).

This module provides functions for processing dwelling characteristics data from SOEP surveys. The functions handle encoding transformations for building types, ownership status, house conditions, number of rooms, and region types.

Disaggregation hierarchy:

House type (SFH, MFH, …) –> Restoration status –> House Owner –> Number of Rooms

Functions defined in this script:
  • building_type: Translate building type codes to standardized names

  • owner_type: Translate ownership status from integers to strings

  • house_condition: Translate house condition/renovation status

  • room_num: Limit and categorize number of rooms

  • region_type: Assign region type (urban/rural) to households

Functions

building_type(df, ip, col_name)

Return building type namings standardized from SOEP tabula encoding.

house_condition(df, ip, col_name)

Translate house condition/renovation status from integers to strings.

owner_type(df, ip, col_name)

Translate dwelling ownership status information from integers to strings.

region_type(df, ip, col_name)

Assign region type (urban/rural) to household identifiers.

room_num(df, ip, col_name)

Limit and categorize the number of rooms in dwelling.