Chapter 5

Multidimensional Sequence Analysis

Marcel Raab https://marcelraab.de/ (State Institute for Family Research at the University of Bamberg (ifb))https://www.ifb.bayern.de/english/institute/index.php , Emanuela Struffolino https://emanuela-struffolino.com/ (University of Milan, Department of Social and Political Sciences)https://www.unimi.it/en/ugov/ou-structure/department-social-and-political-sciences
January 31, 2022

How to use

This .zip archive contains all the data and R-scripts required to replicate the results presented in Chapter 5.

The files are organized in a RStudio project and we use relative paths when referring to the different directories. The top-level directory (reference point for the relative paths) contains most R-Scripts and the .Rproj file which can be used to open the project in RStudio. If you change the directory structure or the names of directories you need adjust the scripts accordingly.

With the exception of 5-0_ChapterSetup.R all the other numbered R scripts start by loading the R environment (data) that is created in 5-0_ChapterSetup.R.

You have to execute 5-0_ChapterSetup.R once before you can run the other scripts.

The R scripts were written and executed using R version 4.1.2 and may not be compatible with earlier versions.

Note for Mac users

We are using the cairo graphics API to save our plots as pdf files. On recent Macs (OS X 10.8 Mountain Lion or later) the respective code junks (cairo_pdf(filename = "plotname.pdf") will not work without prior installation of Xquartz.

Data source

The data come from the German Family Panel (pairfam), release 10.0 Brüderl et al. (2019). A description of the study can be found in Huinink et al. (2011).

We gratefully acknowledge the permission of the pairfam team to share a reduced version of their data to illustrate all techniques presented in the book with real-world survey data.

If you are interested in using the complete data sets please turn to: https://www.pairfam.de/en/

How to cite

If you are re-using our code for your own projects we kindly ask you to cite our book.

Raab, M. & Struffolino, E. (2022). Sequence Analysis. Thousand Oaks, CA: Sage.

BibTeX citation

@book{raabstruffolino2022,
    author = {Raab, Marcel and Struffolino, Emanuela},
    year = {2022},
    title = {Sequence Analysis},
    series = {Quantitative Applications in the Social Sciences},
    number = {190},
    publisher = {SAGE},
    address = {Thousand Oaks, CA},
    isbn = {9781071801888}
}
Brüderl, Josef, Sonja Drobnič, Karsten Hank, Bernhard Nauck, Franz J. Neyer, Sabine Walper, Philipp Alt, et al. 2019. “The German Family Panel (Pairfam). Za5678 Data File Version 10.0.0.” GESIS Data Archive. https://doi.org/10.4232/pairfam.5678.10.0.0.
Huinink, Johannes, Josef Brüderl, Bernhard Nauck, Sabine Walper, Laura Castiglioni, and Michael Feldhaus. 2011. “Panel Analysis of Intimate Relationships and Family Dynamics (Pairfam): Conceptual Framework and Design.” Zeitschrift Für Familienforschung 23 (1): 77–101.

References