Skip to content

Add tenure_type to household microdata output#32

Merged
nikhilwoodruff merged 2 commits intomainfrom
feat/tenure-type-microdata
Apr 10, 2026
Merged

Add tenure_type to household microdata output#32
nikhilwoodruff merged 2 commits intomainfrom
feat/tenure-type-microdata

Conversation

@nikhilwoodruff
Copy link
Copy Markdown
Contributor

Adds tenure_type (as numeric rf_code 0–5) to the household-level microdata CSV output in write_microdata_csv_households. This column was already written in the clean input CSVs but missing from the microdata output, which the microsim analysis layer needs for tenure-based filters (renters, mortgage holders, owner-occupiers).

Codes: 0=OwnedOutright, 1=OwnedWithMortgage, 2=RentFromCouncil, 3=RentFromHA, 4=RentPrivately, 5=Other.

Test plan

  • cargo check passes
  • Run sim.run_microdata() and verify tenure_type column appears in households DataFrame

nikhilwoodruff and others added 2 commits April 10, 2026 11:51
Includes tenure_type (as numeric rf_code 0-5) in the household-level
microdata CSV alongside the existing input columns. This enables
tenure-based filters (renters, mortgage holders, owner-occupiers)
in the microsim analysis layer.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nikhilwoodruff nikhilwoodruff merged commit 5ed34c6 into main Apr 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant