Skip to content

Pairfam Activity Trajectories Dataset ​

This dataset contains German employment/activity trajectories for 1,027 individuals (month-level extract). It is derived from the teaching data accompanying Sequence Analysis (Raab & Struffolino, 2022). The companion site documents that those teaching examples come from the German Family Panel (pairfam), Release 10.0, shared with permission for instructional use (GESIS ZA5678, DOI 10.4232/pairfam.5678.10.0.0).

We provide two versions of the dataset:

  • Year-level data: 22 yearly observations with state abbreviations
  • Month-level data: 264 monthly observations (ages 18 to 40) with numeric state codes

Important Notes

  • The IDs are different between year-level and month-level data and cannot be directly linked.
  • State encoding differs: Year-level uses text abbreviations (e.g., "EDU", "FT"), while month-level uses numeric codes (1–8).
  • The month-level activity and family files share the same 1,027 respondent IDs and can be aligned for multidomain analysis; year-level IDs cannot.

Data origin and processing ​

  • Source: Companion teaching extract (Activitybio / multichannel materials) based on pairfam Release 10.0. The shipped month-level file has 1,027 respondents (identical IDs to pairfam_family_by_month).

  • Processing by book authors: Employment and activity status was categorized into eight states (see encoding table).

  • Our preprocessing: Column renaming only (activity1…activity264 or state1…state264 → 1…264). State integers were not recoded.

    Cleaning code: pairfam_and_little_green_book/code.

  • Verification: Against companion text-label activity sequences, numeric codes 1–8 map one-for-one to EDU, MIL/CS, PT, FT, SELF, PLEAVE, MARGINAL, UNEMP over all 264 months (crosstab diagonal). Some older Sequenzo tutorials used a different eight-label wording; prefer this table.

  • Result: An 8-state alphabet.

Activity states encoding ​

Numeric CodeAbbreviationDescription
1EDUEducation
2MIL/CSMilitary/Civil Service
3PTPart-time Employment
4FTFull-time Employment
5SELFSelf-employed
6PLEAVEParental Leave
7MARGINALMarginal Employment
8UNEMPUnemployed

Year-level data ​

File: pairfam_activity_by_year.csv

This dataset contains 1,027 individuals observed over 22 years. The states are encoded directly as text abbreviations (e.g., "EDU", "FT", "PT", "PLEAVE").

No Covariates

Unlike the month-level data, the year-level data does not include any covariates. The id column contains randomly generated identifiers created during our preprocessing and cannot be linked to other datasets or the month-level data.

Structure ​

ColumnDescription
idIndividual identifier (simple sequential integers; cannot be linked to other datasets)
1 … 22Yearly activity trajectory states, encoded as abbreviations (e.g., "EDU", "FT")

Sample data ​

id12345678910…
194FTPLEAVEFTFTFTFTPLEAVEPLEAVEPLEAVEFT…
896EDUEDUMIL/CSFTUNEMPFTFTFTFTFT…
284EDUEDUEDUEDUEDUEDUFTFTFTFT…
886EDUEDUEDUEDUEDUEDUEDUEDUEDUUNEMP…

Month-level data ​

File: pairfam_activity_by_month.csv

This dataset contains 1,027 individuals observed monthly from ages 18 to 40 (264 months). The states are encoded as numeric codes (1–8) according to the encoding table above.

Structure ​

Besides the state sequences, the dataset includes several covariates:

ColumnDescription
idIndividual identifier (original pairfam IDs, e.g., 111000, 2931000)
weight40Survey weight at age 40 (design weight)
sexSex (1 = male, 0 = female)
doby_genYear of birth (generation year)
dobMonth-year of birth (numerical encoding)
ethniEthnicity indicator
migstatusMigration background status
yeducYears of education
sat1i4, sat5, sat6Selected satisfaction indicators from the survey
highschoolHigh school graduation status
churchChurch attendance indicator
biosibNumber of biological siblings
stepsibNumber of step-siblings
eastRegion indicator (East vs. West Germany)
famstructure18Family structure at age 18
1 … 264Monthly activity trajectory states, coded 1–8 as above

Sample data ​

idweight40sexdoby_gendobethnimigstatusyeduchighschoolchurchbiosibeast12345…
1110000.344119718551111.5001144444…
29310001.767019738815310.5011011111…
34910000.727119718571118.0113011111…

Here columns 1–5 show the first five months of the trajectory, coded as 1–8 according to the state table above.

Reference ​

Raab, M., & Struffolino, E. (2022). Sequence analysis (Vol. 190). Sage Publications.

See Also ​

Author: Yuqi Liang

Sequenzo is released under the BSD-3-Clause License; this documentation site source is licensed under MIT.