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.

Concepts

Waves, modules, variables

The SOEP is a panel survey that follows the same individuals over time. It is run in yearly waves. Each wave consists of several survey modules, and the SOEP team distributes each module as one raw data file (Stata .dta). For example hwealth.dta holds household-level wealth; one of its variables, p010ha, is the market value of the primary residence (paneldata.org/soep-core/datasets/hwealth/p010ha).

After conversion to pandas, each module is cleaned into typed, renamed variables. Variables from several modules can be combined into a new module, named {module_1}_{module_2} (e.g. pequiv_pkal).

SOEP file names (#27)

SOEP module names combine a unit prefix with a content suffix:

AffixMeaning
p…person level
h…household level
bio…biographical / retrospective
kid…children
…genSOEP-generated (cleaned, consistent) variables
…bruttofieldwork / gross sample data (contact and response status)
…pathlthe panel path (tracking) file, long format
…llong format (the yearly questionnaire data)
…equivcross-nationally equivalent file (CNEF), income reference = previous year
…kalactivity calendar (Kalendarium) for the previous year

The modules in this pipeline. Most follow the affix scheme above; cirdef, design, and health are standalone files that do not:

ModuleContents
ppathl / hpathlperson / household tracking (IDs, weights, status across waves)
pgen / hgengenerated person / household variables
pbruttofieldwork / response status per person
pl / hlyearly person / household questionnaire data
pequivCNEF-harmonised person income and household aggregates
pkalperson activity / income calendar for the previous year
pwealth / hwealthperson / household wealth (multiply imputed)
biobirth, bioparen, bioedu, biolfertility, parental, education, life-history biographies
kidlongchild-level information across waves
cirdefhousehold random-group / SOEP teaching-sample membership (optional)
designsurvey sampling design (random group, stratum, sample)
healthderived SF-12 health module (physical / mental component summaries)

The cirdef module is optional: it is only required to build the SOEP teaching sample. If it is absent, the pipeline warns and runs without it instead of aborting.

For the full contents of any module or variable, see the online SOEP documentation; URLs follow https://paneldata.org/soep-core/datasets/{module}/{variable}. The “Codebook (PDF)” there is especially helpful.

Index variables and why there is no index

Every cleaned module carries the identifier columns it has among p_id, hh_id, hh_id_original, and survey_year. These align modules for merging.

These are kept as plain columns, not a pandas index. The merged dataset feeds GETTSIM, which expects flat columns, and a flat layout keeps merges explicit. If you want them as an index in your own analysis, set it yourself:

df = df.set_index(["p_id", "survey_year"])

Reference period

Whether a value describes the survey year, the previous calendar year, or the month before the interview is recorded as per-variable metadata, not in the name. See Naming conventions → Reference period for the model and the ryear / rmonth recipe.

Looking up a variable

Search the project for a variable name. You will find it in at least two places: its entry in create_metadata/variable_to_metadata_mapping.yaml (module, dtype, available survey years) and its definition in clean_modules/ or combine_modules/. The definition shows the raw SOEP variable(s) it is built from, which you can then look up on paneldata.org. The Variables reference lists every variable with its module, dtype, and available survey years.