Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Scope

soep-preparation turns raw SOEP-Core Stata files into typed, cleaned, documented variables. What it does, in three tiers:

  1. Clean raw variables. Cast each SOEP variable to an adequate dtype, convert the SOEP missing codes to pd.NA, and give it a readable name (see Naming conventions). One cleaned module per raw module.

  2. Add standard derived variables. Variables that are generally useful and follow directly from the raw data — e.g. a BMI dummy from height and weight, or a single birth month reconciled across modules.

  3. Add derived variables relevant as GETTSIM inputs. Variables shaped for microsimulation with GETTSIM: German programme names aligned to GETTSIM’s spelling, reference periods made explicit so income can be aligned to its policy year.

Out of scope