Building Sequences from SHP Waves

Based on the structure of the SPSS version of the Swiss Household Panel (SHP) data, provides a function seqFromWaves() that seeks the data of variables specified by the user in each of the wave files and collects them as sequences. The function also matches the sequences with variables from other files such as the master files of persons (MP) and households (MH), and social origins (SO). It can also match with activity calendar data (CA).


seqSHP R package

The library 'seqSHP' is intended for data from the Swiss Household Panel (SHP). It provides function seqFromWaves() that extracts sequence data from the successive SHP wave files together with covariates from other SHP files. Function seqFromWaves() returns the extracted data in a tibble. A getColumnIndex() function retrieves the column indexes of a given protoname in the tibble.

See the help page of function `seqFromWaves()', which provides examples.

SHP data are available for free from FORS https://forscenter.ch/projects/swiss-household-panel/data/

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("seqSHP")

0.1.1 by Gilbert Ritschard, 2 years ago


Browse source code at https://github.com/cran/seqSHP


Authors: Gilbert Ritschard [aut, cre, cph]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports haven, dplyr

Suggests TraMineR


See at CRAN