Skip to content

Add the year of death from ppathl.todjahr - #108

Merged
MImmesberger merged 1 commit into
mainfrom
feat/death-year
Nov 17, 2026
Merged

MImmesberger merged 1 commit into
mainfrom
feat/death-year

Conversation

@hmgaudecker

Copy link
Copy Markdown
Collaborator

Adds year_of_death to the ppathl cleaning, from SOEP ppathl.todjahr (four-digit year of death). It is time-invariant. Both SOEP missing codes become missing:

  • -2: not known to be deceased (alive, or dropped out with unknown whereabouts);
  • -1: known to be deceased, year unknown.

Coding as documented in SOEP Survey Papers 1546 (SOEP-Core v40.1, ppathl).

The catalogue entry in variable_to_metadata_mapping.yaml was written by hand (int16[pyarrow], survey years 1984–2024, the same as year_of_immigration), since I could not run the pipeline on the raw data. The metadata gate will flag it on the next data run if the generated entry differs.

https://claude.ai/code/session_01QikUNrBdk7tPGjgDTTMPUz

Clean SOEP ppathl.todjahr into year_of_death, a time-invariant integer.
Both missing codes become missing: -2 (not known to be deceased) and -1
(deceased, year unknown).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QikUNrBdk7tPGjgDTTMPUz
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 soep-preparation | 🛠️ Build #35239793 | 📁 Comparing 5584817 against latest (ecc42c5)

  🔍 Preview build  

1 file changed
± variables/index.html

@codecov

codecov Bot commented Oct 19, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/soep_preparation/clean_modules/ppathl.py 66.66% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@MImmesberger
MImmesberger merged commit 79b8bcf into main Nov 17, 2026
7 checks passed
@MImmesberger
MImmesberger deleted the feat/death-year branch November 17, 2026 16:45
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.

2 participants